latency for Tap but not MouseMove (client-side) events?

Hi,

I had recently posted to the forum about a bug where Tap events are not registered during MouseMove events. I was advised by @bryevdv to open an issue on github. See:

https://groups.google.com/a/continuum.io/d/msg/bokeh/CZ_gy1KV3UM/oR1gUXcDCgAJ

I’d recently been reviewing these issues, and found that there was a noticeable latency for Tap events but not MouseMove events, as exampled here:

https://bokeh.pydata.org/en/latest/docs/user_guide/interaction/callbacks.html#customjs-for-user-interaction-events

It seems quite clear to me that the MouseMove events are perceptually instantaneous, but the Tap events are not. What is the reason for this? Is this related to the aforementioned issue with Tap events not registering during MouseMove events?

For my own purposes, I’d like to provide users with low latency MouseMove and Tap event feedback. Is this possible?

Thanks,

Kevin

Same issue with the standalone example … https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/tap.py

MouseMove is concurrent with user input, Tap is not.

···

On Saturday, September 9, 2017 at 11:26:38 PM UTC-4, kevin desimone wrote:

Hi,

I had recently posted to the forum about a bug where Tap events are not registered during MouseMove events. I was advised by @bryevdv to open an issue on github. See:

https://github.com/bokeh/bokeh/issues/6826

https://groups.google.com/a/continuum.io/d/msg/bokeh/CZ_gy1KV3UM/oR1gUXcDCgAJ

I’d recently been reviewing these issues, and found that there was a noticeable latency for Tap events but not MouseMove events, as exampled here:

https://bokeh.pydata.org/en/latest/docs/user_guide/interaction/callbacks.html#customjs-for-user-interaction-events

It seems quite clear to me that the MouseMove events are perceptually instantaneous, but the Tap events are not. What is the reason for this? Is this related to the aforementioned issue with Tap events not registering during MouseMove events?

For my own purposes, I’d like to provide users with low latency MouseMove and Tap event feedback. Is this possible?

Thanks,

Kevin

In case anyone is wondering—this is due to some hardsetting of time delta parameters in hammer.js, on which bokeh depends. You can npm install, modify those values in the hammer.js, and rebuild bokeh. Voila.

···

On Monday, September 11, 2017 at 3:30:04 PM UTC-4, kevin desimone wrote:

Same issue with the standalone example … https://github.com/bokeh/bokeh/blob/master/examples/plotting/file/tap.py

MouseMove is concurrent with user input, Tap is not.

On Saturday, September 9, 2017 at 11:26:38 PM UTC-4, kevin desimone wrote:

Hi,

I had recently posted to the forum about a bug where Tap events are not registered during MouseMove events. I was advised by @bryevdv to open an issue on github. See:

https://github.com/bokeh/bokeh/issues/6826

https://groups.google.com/a/continuum.io/d/msg/bokeh/CZ_gy1KV3UM/oR1gUXcDCgAJ

I’d recently been reviewing these issues, and found that there was a noticeable latency for Tap events but not MouseMove events, as exampled here:

https://bokeh.pydata.org/en/latest/docs/user_guide/interaction/callbacks.html#customjs-for-user-interaction-events

It seems quite clear to me that the MouseMove events are perceptually instantaneous, but the Tap events are not. What is the reason for this? Is this related to the aforementioned issue with Tap events not registering during MouseMove events?

For my own purposes, I’d like to provide users with low latency MouseMove and Tap event feedback. Is this possible?

Thanks,

Kevin