<p></p>
<p>I've replicated part of the issue locally with a simple setup of Leaflet and jQuery.</p>
<p>What seems to be happening is that Safari is emitting two click events for those buttons when clicking them normally, but only one event if force clicking on the trackpad. Chrome only emits one click event as expected, whether clicking normally or with force.</p>
<p>So the first click event in Safari is enabling the tool, and the second is disabling it straight away. That's presumably why the query button flashes green momentarily in iOS. The reason the note tool works is that pressing it a second time doesn't disable it, it just quietly loads it again.</p>
<p>I'll experiment with some alternatives, such as listening for 'pointerdown' instead of 'click' events (which may have unintended side effects) or listening for events using L.DomEvent instead of jQuery.</p>
<p>Maybe worth rolling back to the previous version of Leaflet in the meantime?</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/2811#issuecomment-687655538">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLI2XCLM3L3ITJ2PBWLSEKJSXANCNFSM4Q2WQRMQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLPIMK5JGSGLQR7GZBDSEKJSXA5CNFSM4Q2WQRM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFD6MU4Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/2811#issuecomment-687655538",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2811#issuecomment-687655538",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>