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

Scrollbar doesn't work inside iframe #453

Open
gkozlenko opened this issue Sep 6, 2016 · 1 comment
Open

Scrollbar doesn't work inside iframe #453

gkozlenko opened this issue Sep 6, 2016 · 1 comment

Comments

@gkozlenko
Copy link

Scrollbar doesn't work inside iframe. It throws this exception:

TypeError: Object.defineProperty called on non-object

The problem is in this line:

https://github.com/malihu/malihu-custom-scrollbar-plugin/blob/master/js/uncompressed/jquery.mCustomScrollbar.js#L1217

$(document).add(eds).bind("mousemove."+namespace+" pointermove."+namespace+" MSPointerMove."+namespace,function(e){

In iframe eds variable equals [true].

eds=o.advanced.extraDraggableSelectors ? $(!_canAccessIFrame() || top.document).add($(o.advanced.extraDraggableSelectors)) : $(!_canAccessIFrame() || top.document);

jQuery version: v3.1.0
Demo (look in the browser console): https://jsfiddle.net/dpz1a7dx/3/

@gkozlenko
Copy link
Author

gkozlenko commented Sep 6, 2016

I think it's fixed in this pull request: #451

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

1 participant