Capturing x,y axis location on the screen to set a value.

George Amend shared this question 6 years ago
Answered

How do you capture x/y axis location of cursor? I need to change a value based on the location of a marker on a slider bar. As the Marker moves across the x axis it changes value accordingly. Left side of slider is low. Right side is high with graduated variations between

Comments (2)

photo
1

Hi George,


We have user who created an awesome slider widget. He was willing to share his work with the community: http://d2ld3he4yll0xl.cloudfront.net/...


Thank you Markku!

photo
1

This is awesome! Any idea how to make it work when simulating an iPhone? "On Mouse Enter" doesn't work on an iPhone.