Skip to content

PB-1004 : only use right click to trigger "delete point" action#1249

Merged
pakb merged 2 commits intodevelopfrom
bug-PB-1004-revert-use-of-right-click
Mar 17, 2025
Merged

PB-1004 : only use right click to trigger "delete point" action#1249
pakb merged 2 commits intodevelopfrom
bug-PB-1004-revert-use-of-right-click

Conversation

@pakb
Copy link
Contributor

@pakb pakb commented Feb 20, 2025

users on touch devices could trigger a delete by double tapping on the last point they were drawing, which wasn't ideal.

As I've run out of ideas on how to fix this on mobile, I've simply removed the possibility to delete a point on mobile as we lack "gestures" to achieve it.

Test link

@github-actions github-actions bot added the bug label Feb 20, 2025
@cypress
Copy link

cypress bot commented Feb 20, 2025

web-mapviewer    Run #4809

Run Properties:  status check passed Passed #4809  •  git commit bf31b463d5: Merge pull request #1249 from geoadmin/bug-PB-1004-revert-use-of-right-click
Project web-mapviewer
Branch Review develop
Run status status check passed Passed #4809
Run duration 01m 40s
Commit git commit bf31b463d5: Merge pull request #1249 from geoadmin/bug-PB-1004-revert-use-of-right-click
Committer Pascal Barth
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 1
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 48
View all changes introduced in this branch ↗︎

@pakb pakb force-pushed the bug-PB-1004-revert-use-of-right-click branch from 268b8ab to cb7089c Compare February 26, 2025 13:44
@pakb pakb requested a review from schtibe February 26, 2025 15:23
@pakb pakb force-pushed the bug-PB-1004-revert-use-of-right-click branch from cb7089c to 9a60ccf Compare March 3, 2025 06:58
Copy link
Contributor

@schtibe schtibe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the help text needs updating:
image

Also, right clicking on a point that isn't an edge or on the line deletes the last point. Is that intended?

@pakb pakb force-pushed the bug-PB-1004-revert-use-of-right-click branch 2 times, most recently from 53b300d to 1a4445d Compare March 17, 2025 08:54
@pakb pakb changed the title PB-1004 : move "delete point" action to Alt+click PB-1004 : only use right click to trigger "delete point" action Mar 17, 2025
@pakb pakb requested a review from schtibe March 17, 2025 09:30
@pakb pakb force-pushed the bug-PB-1004-revert-use-of-right-click branch from 1a4445d to 34e089c Compare March 17, 2025 09:45
@pakb pakb force-pushed the bug-PB-1004-revert-use-of-right-click branch from 441e141 to 61beb5c Compare March 17, 2025 13:20
pakb added 2 commits March 17, 2025 15:40
users on touch devices could trigger a delete by double tapping on the last point they were drawing, which wasn't ideal.

As I've run out of ideas on how to fix this on mobile, I've simply removed the possibility to delete a point on mobile as we lack "gestures" to achieve it.
we need to have right click hooked up to the "delete point under cursor" when not editing/extending a feature
@pakb pakb force-pushed the bug-PB-1004-revert-use-of-right-click branch from 61beb5c to 5b5aa07 Compare March 17, 2025 14:40
@pakb pakb merged commit bf31b46 into develop Mar 17, 2025
6 checks passed
@pakb pakb deleted the bug-PB-1004-revert-use-of-right-click branch March 17, 2025 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants