I'm using the Greenscok Draggable as a themostat. The temperature increases or decrease at every 18 degrees rotation (also based on clockwise or counter-clockwise).
I'm grabbing the rotation and using the remainder operator (%) and if it is equal to 0, the temperature changes.
With the dial at 0 (rotation), the temperature is at 18 and at -180 (rotation), the dial should reach 26 degrees. However, the rotation and the temperature don't seem to be working in unison.
Just to add, the temperature should be at 22 degrees at -90 (rotation).
Here is the codepen: http://codepen.io/jetchy/pen/EgAdgP