Christian Selig on Nostr: Presumably silly visionOS SwiftUI question: I add a DragGesture to a Rectangle, I’m ...
Presumably silly visionOS SwiftUI question: I add a DragGesture to a Rectangle, I’m looking at it (hover state confirms), but I pinch and drag, and nothing happens on device unless I look at the dead center of the Rectangle even though I can look at any part to 'highlight' it. And it works fine in simulator.
Is there a trick to DragGestures on visionOS? It's almost like there's a dead zone which makes selecting the shape really tricky. Am I doing something silly?
Gist:
https://gist.github.com/christianselig/edfc4508dfc20fd5958e535c6c52ee60
Published at
2024-02-12 04:23:36Event JSON
{
"id": "d0fe0b6f0563446d9b27e0caeddbc1bf9aeebbce03db0afc19d78c28ff6d3601",
"pubkey": "de6adda4d139627ce8f9cf05ef27c7cd1de9895363e5f303667f761bec318716",
"created_at": 1707711816,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/christianselig/statuses/111916601592233379",
"activitypub"
]
],
"content": "Presumably silly visionOS SwiftUI question: I add a DragGesture to a Rectangle, I’m looking at it (hover state confirms), but I pinch and drag, and nothing happens on device unless I look at the dead center of the Rectangle even though I can look at any part to 'highlight' it. And it works fine in simulator.\n\nIs there a trick to DragGestures on visionOS? It's almost like there's a dead zone which makes selecting the shape really tricky. Am I doing something silly?\n\nGist: https://gist.github.com/christianselig/edfc4508dfc20fd5958e535c6c52ee60\n\nhttps://files.mastodon.social/media_attachments/files/111/916/601/331/410/959/original/844c09e0e99f7d95.png",
"sig": "0973267929a1cfd7e006adcaf81efe75dea110af1a496d3ffda05bebc5c6d8814f4676d691ed80be5259712b065cddf276984e0ddd7eb7d1a07c9616ac45ffcb"
}