Broken Mac Detection
pzcfg opened this issue · comments
There are a number of places where this isIOS
/ iOS()
function gets used, e.g. to switch between ctrlKey
and metaKey
in onKeyDown()
svelecte/src/lib/Svelecte.svelte
Lines 523 to 533 in 4f16d7e
And the comment above it says "Detect Mac device"…
Lines 144 to 160 in 4f16d7e
…however, by having the && "ontouchend" in document
this excludes desktop Mac devices.
I think this is causing some of the Mac behavior to only be triggered on iOS devices, not desktop Mac.
I'm not sure if there's functionality that needs to be conditionally changed for iOS vs macOS vs all Apple devices, but it seems like there may need to be some more specific / granular functions/conditions added to ensure these different cases aren't conflated.
Yes, this should be extended to all Mac as well.