briangonzalez / jquery.pep.js

👟 Pep, a lightweight plugin for kinetic drag on mobile/desktop
http://pep.briangonzalez.org
1.3k stars 178 forks source link

Pep + absolutely positioned elements = disaster #203

Open ScottBeeson opened 7 years ago

ScottBeeson commented 7 years ago

Has anyone else experienced this? Here is a Stack Overflow question about it: http://stackoverflow.com/questions/44075838/pep-js-constrain-to-parent-breaks-absolutely-positioned-elements

ScottBeeson commented 7 years ago

If you position absolutely using left instead of right it seems to work fine.

seanCodes commented 7 years ago

Looks like that SO question was moved... 😕 Do you have a jsfiddle or codepen link demoing the issue?

ScottBeeson commented 7 years ago

No, but it's easily reproducable. Any element that is absolutely positioned using right: ##px will break because pep calculates everything from the left.