You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently MouseEventHandler and widgets like PaneWidgetuse detection of the device type to determine what type of event subscribe for and what to do in several cases (long tap event, dragging, tracking mode).
In a lot of cases we don't need to detect it, we can subscribe on all needed event with separate handles and there we'll know what's happened (touch event or mouse one). It requires some refactoring in MouseEventHandler and detecting that an event is emulated from original one (mouse event from touch for instance).
Currently
MouseEventHandler
and widgets likePaneWidget
use detection of the device type to determine what type of event subscribe for and what to do in several cases (long tap event, dragging, tracking mode).In a lot of cases we don't need to detect it, we can subscribe on all needed event with separate handles and there we'll know what's happened (touch event or mouse one). It requires some refactoring in MouseEventHandler and detecting that an event is emulated from original one (mouse event from touch for instance).
Don't forget about this.
I believe in the PR for this issue we can remove https://github.com/tradingview/lightweight-charts/blob/6f132374ed82b31f3b1e66837b2956470057a50d/src/gui/support-touch.ts module at all.
Related links:
The text was updated successfully, but these errors were encountered: