Closed dascritch closed 3 years ago
Most of the recipes is to recreate a timer listener. But this is interesting https://github.com/Leaflet/Leaflet/issues/6817 then https://bugs.webkit.org/show_bug.cgi?id=202143 . As we use pointer events for the throbber, I have to re-emulate the contextmenu event. I had it, but removed.
So sad... it was leaner
// throbber management
const timeline_element = elCPU.shadowId('time');
timeline_element?.addEventListener('pointerenter', trigger.hover, passiveEvent);
timeline_element?.addEventListener('pointermove', trigger.hover, passiveEvent);
timeline_element?.addEventListener('pointerout', trigger.out, passiveEvent);
// alternative fine navigation for handhelds
timeline_element?.addEventListener('contextmenu', () => {elCPU.showHandheldNav();});
Event delegation not standardly occuring. May be I should add a listener out of contextmenu. So bad, because it was so simple and elegant