asvd / dragscroll

micro library for drag-n-drop scrolling style
http://asvd.github.io/dragscroll/
MIT License
1.1k stars 166 forks source link

Verticall scrolling doesnot work while in a container with horizontal scrolling is encountered #14

Closed regmish closed 8 years ago

regmish commented 8 years ago

I have two containers : one is parent which scrolls vertically and inside parent there is another horizontal scrolling div. when I reach child container with horizontal scrolling vertical scrolling does not work.

asvd commented 8 years ago
  1. Do you have an online demo?
  2. Which container do you want to be scrolled when you drag the child element?
regmish commented 8 years ago

I have a big parent container which scrolls vertically, it works fine. But in the middle of the div there is another child container which scrolls horizontally. When I reach that child container and try to scroll up the parent container I cannot . I just want to bubble up the mouseup event on the child container towards parent container. How can I achieve this? please help

asvd commented 8 years ago

If you set the dragscroll class for the parent container, and not for the child container, it should work as described (until there is a bug in dragscroll). Do you have a simple online demo where this can be reproduced?

regmish commented 8 years ago

yeah, fixed above issue, with propagating event on mouse move

asvd commented 8 years ago

I'm wondering if it's not propagated by default

regmish commented 8 years ago

yeah, just commented out a single line and its working like a charm

asvd commented 8 years ago

which line?

regmish commented 8 years ago

line no 48 e.stopPropagation() screenshot from 2016-02-19 23 05 34

asvd commented 8 years ago

eventually this issue has already been fixed some commits ago and released in v0.0.6