threesixty-slider icon indicating copy to clipboard operation
threesixty-slider copied to clipboard

Mouse Tracking

Open beilby opened this issue 9 years ago • 2 comments

Hi,

I am a novice with javascript, but I was wondering how difficult it might be to modify the code so that the rotation is attached to the mouse position as in this example http://phoenix.cool/

Thanks in advance and sorry if this is an obvious answer!

Cheers, Jack

beilby avatar Feb 03 '16 14:02 beilby

News ?

boesbo avatar Sep 13 '17 08:09 boesbo

Hello there, In the src/threesixty.js on line 479 you can exchange the two variables like this:

AppConfig.pointerDistance = AppConfig.pointerStartPosX - AppConfig.pointerEndPosX;

this at least makes the slider slide in the right direction. Also you could set the speedMultiplyer to 1 so that it spins not that quick.

Jajolo avatar Feb 04 '20 20:02 Jajolo