Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mouse dragging in bootstrap #8

Closed
TPei opened this issue Apr 18, 2015 · 7 comments
Closed

mouse dragging in bootstrap #8

TPei opened this issue Apr 18, 2015 · 7 comments

Comments

@TPei
Copy link

TPei commented Apr 18, 2015

when using knobs with bootstrap, as soon as a knob is inside a col with a size (col-md-12 etc.), the mouse dragging stops working. It doesn't matter how many layers down the DOM the knob is inside the col.

@eskimoblood
Copy link
Owner

Could please create an example on jsbin so I can check this. Thanks.

@TPei
Copy link
Author

TPei commented Apr 18, 2015

sure, here you go:
http://jsbin.com/wunejazoha/1/

@eskimoblood
Copy link
Owner

Ok, the problem is the use of offsetTop and offsetLeft to get the position of the knob container, this will fail if the container is inside a relative positioned container as bootstrap column. I will fix it by using getBoundingClientRect.

@TPei
Copy link
Author

TPei commented Apr 23, 2015

Hey, I still got this issue in Firefox. But strangely, only occasionally... Does that make any sense? Are there any known issues in Firefox?

@eskimoblood
Copy link
Owner

Does it relates to the scroll position?

@TPei
Copy link
Author

TPei commented Apr 23, 2015

oh, yeah, it does. Once I am scrolled completely to the top of the page it works flawlessly, if I'm not, it doesn't

@TPei
Copy link
Author

TPei commented Apr 25, 2015

Does that tell you anything? Ever experienced that "bug"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants