Filtering messes up scrolling

73 views
Skip to first unread message

Rasmus Aveskogh

unread,
Aug 20, 2015, 7:25:49 AM8/20/15
to dc-js user group

I've seen in the forum and in some github issues that others have had problems with charts that "hogs" the mouse scroll event and prevents the user from scrolling the page. Are there any accepted solutions for this behaviour in the master branch/API?

-ra

Gordon Woodhull

unread,
Aug 20, 2015, 11:51:12 AM8/20/15
to dc.js user group
This is an essential design problem. If you capture the mouse wheel for mouseZoomable, then it will grab the mouse as the window scrolls by.

It's definitely annoying, but I can't think of a simple way to fix it. Detect if the window is scrolling, and let the messages pass through in that case? 

So as far as I know, the only solution for now is to disable mouseZoomable. Not very satisfying. Maybe someone else has a better workaround?


On Aug 20, 2015, at 7:25 AM, Rasmus Aveskogh <aves...@gmail.com> wrote:


I've seen in the forum and in some github issues that others have had problems with charts that "hogs" the mouse scroll event and prevents the user from scrolling the page. Are there any accepted solutions for this behaviour in the master branch/API?

-ra

--
You received this message because you are subscribed to the Google Groups "dc-js user group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dc-js-user-gro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dc-js-user-group/b82bef8c-2a72-4df3-bc7e-9a322b608ecd%40googlegroups.com.

Rasmus Aveskogh

unread,
Aug 20, 2015, 12:00:42 PM8/20/15
to dc-js user group

The things is that I don't even have zooming enabled in my graphs, but the behaviour is present anyway. It does so after I have applied a filter (regardless if I then remove the filter again).

-ra

Gordon Woodhull

unread,
Aug 20, 2015, 12:19:55 PM8/20/15
to dc.js user group
I see. I'm able to reproduce this on the main demo page with the Days by Fluctuation chart.

I guess you are referring to this PR "fix coordinate grids hijacking mouse scroll": https://github.com/dc-js/dc.js/pull/439

Seems it didn't work!

I don't immediately see the problem. Hopefully someone else here has looked at this.



Reply all
Reply to author
Forward
0 new messages