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

When height is set, horizontal no longer scross #8

Open
Techgeekster opened this issue May 23, 2016 · 1 comment
Open

When height is set, horizontal no longer scross #8

Techgeekster opened this issue May 23, 2016 · 1 comment

Comments

@Techgeekster
Copy link

When I set the height on my scrollable div (not the parent/wrapper div), the div is no longer scrollable by dragging, but it is still scrollable by using the scroll bar. Vertical scrolling seems to be working well.
I'm using Chrome, my scrollable div's position is set to relative, and my parent div's position is relative as well.
I have included both jquery-scrollable.js and debiki-utterscroll.js. I'm using jquery version 1.9.1

@kajmagnus
Copy link
Collaborator

Hi, okay. I'm a bit surprised about this. If you have a look at this demo: http://rawgit.com/debiki/utterscroll/master/utterscroll-example.html
and then, in Chrome Dev Tools, right click Inspect on the blue rectangle (the one a the top with the text "Utterscroll works in nested scrollbars" inside), you'll notice it has it's height specified:

style="width:800px; height:400px; background-color: blue; position:relative; left:100px; overflow: scroll"

but still it's possible to drag-scroll it both horizontally & vertically.

It could perhaps be helpful if you copy pasted the relevant HTML and CSS here? (not the whole page, but perhaps it's possible to copy-paste only the part of the page where the problem happens?)

(the example above uses jQuery 2.0 not 1.9 though)

If you want to and have the time, perhaps you'd like to copy the above-mentioned http://rawgit.com/debiki/utterscroll/master/utterscroll-example.html and see if you can reproduce the problem? (I'm not sure when I would have time to fix it, I'm doing fairly much other stuff right now, but at least it seems interesting to try to find out what's happening)

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