Closed SpabRice closed 5 years ago
Hello,
I'm looking for a possibility to get the mouse position while the carousel is dragging.
The usual jquery actions like 'mousemove','ondrag', ... are not working. It always stops when dragging the carousel. Is there any way to get them?
Example http://jsfiddle.net/hrzt698n/7/
Use Flickity's custom dragMove event that provides a moveVector parameter
dragMove
moveVector
$carousel.on( 'dragMove.flickity', function( event, pointer, moveVector ) {...});
See dragMove demo on CodePen
Hello,
I'm looking for a possibility to get the mouse position while the carousel is dragging.
The usual jquery actions like 'mousemove','ondrag', ... are not working. It always stops when dragging the carousel. Is there any way to get them?
Example http://jsfiddle.net/hrzt698n/7/