Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative fine browsing mode on Safari #150

Closed
dascritch opened this issue Apr 13, 2021 · 1 comment
Closed

Alternative fine browsing mode on Safari #150

dascritch opened this issue Apr 13, 2021 · 1 comment
Labels
buggy browser Incorrect standard implemntation in browser

Comments

@dascritch
Copy link
Owner

Event delegation not standardly occuring.
May be I should add a listener out of contextmenu. So bad, because it was so simple and elegant

@dascritch dascritch added the buggy browser Incorrect standard implemntation in browser label Apr 13, 2021
@dascritch dascritch mentioned this issue Apr 13, 2021
9 tasks
@dascritch
Copy link
Owner Author

dascritch commented Apr 15, 2021

Most of the recipes is to recreate a timer listener. But this is interesting Leaflet/Leaflet#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();});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
buggy browser Incorrect standard implemntation in browser
Projects
None yet
Development

No branches or pull requests

1 participant