romaindr
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by romaindr
-
-
Hi there,
I am having trouble changing window scrolltop on drag an item.
I'd like to create kind of minimap of may page while draging window scroll to position.
But as soon as I add window scrollTo animation everything is flickering and I have weird y values... Any ideas?
Draggable.create('.el', {type:"y",cursor:'drag',edgeResistance:0.5,zIndexBoost: false,lockAxis:true,bounds:'.drag',onDrag:function(e){window.scrollTo(0,this.y*3 )}});
Draggable - Change window scrollTop on drag
in GSAP
Posted
this.update(true) is working fine!
THX