Fix: Größere Berührfläche im Objekt-Drehmodus#12
Draft
tordans wants to merge 1 commit into
Draft
Conversation
Disable map pan and screen rotation while rotating a selected object so two-finger rotation is not stolen by competing gestures. Add a single-finger pan gesture that rotates around the object center anywhere on the map view. Reset per-frame rotation delta for two-finger object rotation. Co-authored-by: Tobias <t@tobiasjordans.de>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem (User Story)
Als OpenStreetMap-Editor:in in Go Map
möchte ich ein ausgewähltes Objekt im Drehmodus über die gesamte Kartenfläche drehen können,
damit ich nicht mit den Fingern auf eine kleine cyanfarbene Fläche zielen muss und das Drehen zuverlässig funktioniert.
Aktuelles Verhalten: Im Drehmodus ist die effektive Berührfläche für die Drehgeste sehr klein (visuell nur ein schmaler Bogen um das Objekt). Fingerbewegungen auf dem Display lösen oft kein Drehen aus — stattdessen wird die Karte verschoben oder andere Gesten übernehmen.
Gewünschtes Verhalten: Im Drehmodus soll die gesamte Kartenansicht (mindestens die volle
MapView) das Drehen auslösen — per Ein-Finger-Wischen oder Zwei-Finger-Drehung.Implementation Notes (by Cursor)
isRotateObjectModeaktiv ist, werden Karten-Pan und Bildschirm-Rotation inMainViewControllerabgeschaltet (setObjectRotationModeActive). Pinch war bereits gesperrt; Tap-and-Drag ebenfalls.UIPanGestureRecognizer(maximumNumberOfTouches = 1) aufMapView, der den Winkel zwischen Berührungspunkt und Objektmittelpunkt berechnet undEditorMapLayer.rotateContinuemit normalisiertem Winkel-Delta aufruft.rotationGesture.rotationwird nach jedem Frame auf0zurückgesetzt (inkrementelle Deltas wie bei der Kartenrotation), damit die Drehung nicht springt.src/Shared/MapView.swift,src/iOS/MainViewController.swiftTesting Notes (by @tordans)