palantir / plottable

:bar_chart: A library of modular chart components built on D3
http://plottablejs.org/
MIT License
2.97k stars 224 forks source link

FR: EventFilter for DragInteraction? #3479

Open stephanwlee opened 5 years ago

stephanwlee commented 5 years ago

Hi there!

DragInteraction, today, supports MouseFilter that lets consumer choose which events to ignore and what not. Can we generalize that a little bit more and have a general filter for all PointerEvent? Context: https://github.com/palantir/plottable/blob/develop/src/interactions/dragInteraction.ts#L81

What I want to achieve: I would like to disable touch interaction in certain case and it seems like one way to achieve that is through the {Mouse,Touch}Filter concept in DragInteraction.