Jump to content

Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited

Posts posted by jetchy

  1. 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:




    See the Pen EgAdgP by jetchy (@jetchy) on CodePen