Post

Replies

Boosts

Views

Activity

Reply to mapkit js click and double click events
Is there a way to create a click event which will not fire when a drag is performed? You can use map.addEventListener("single-tap", function(e) { // your code without the target node condition }) ...instead, which will not count dragging and releasing the mouse as clicks. Note that you use map.addEventListener instead of map.element.addEventListener here, so no element as these events are from MapKit directly and no DOM events. Kinda confusing but that works :)
Jun ’24
Reply to WKWebView memory budget
Same here. My webview application is crashing with the same error and the reason seems to be that it runs out of vram. This happens at random when WebGL scenes are being loaded, sometimes it does, sometimes it does not. I am not getting a warning though. It is working fine in the mac simulator, where there probably is more vram available
Sep ’23