Modify

Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#17654 closed enhancement (fixed)

[Patch] Notify users of viewport following activation

Reported by: MelioraCogito Owned by: team
Priority: normal Milestone: 20.01
Component: Core Version: latest
Keywords: Viewport Following Cc:

Description

Can't seem to find the preference which enables/DISABLES view auto-scrolling when drawing ways — centering the screen view to the newly created way point.

This is a damn annoying feature and I want to disable it.

Attachments (3)

17654.patch (2.0 KB ) - added by GerdP 5 years ago.
17654-v2.patch (1.0 KB ) - added by GerdP 5 years ago.
17654-v3.patch (1.1 KB ) - added by GerdP 4 years ago.

Download all attachments as: .zip

Change History (26)

comment:1 by GerdP, 5 years ago

The "Viewport following" mode is toggled with Ctrl+Shift+F. You can disable that keyboard shortcut in the preferences dialog.

comment:2 by Klumbumbus, 5 years ago

Maybe we should remove that shortcut. I already read this issue several times here in the trac or in the forum. It semms it is too easy to hit it instead of Ctrl+F. If someone really wants to use the shortcut he can manually set it again.

comment:3 by GerdP, 5 years ago

+1

by GerdP, 5 years ago

Attachment: 17654.patch added

comment:4 by GerdP, 5 years ago

On the other hand I miss the ability to configure a shortcut for "Edit: Move Node" action. The attached patch implements both changes (no shortcut by default, but possibility to configure one)

in reply to:  2 ; comment:5 by Don-vip, 5 years ago

Replying to Klumbumbus:

Maybe we should remove that shortcut.

If we remove it, many people will complain. Maybe we could instead make it clear and display somewhere that "Viewport following is enabled, press Ctrl+Shift+F to disable it".

by GerdP, 5 years ago

Attachment: 17654-v2.patch added

comment:6 by GerdP, 5 years ago

If we remove it, many people will complain. Maybe we could instead make it clear and display somewhere that "Viewport following is enabled, press Ctrl+Shift+F to disable it".

Yes, maybe better to try this first. The new patch shows the message when the mode is enabled and another when it is disabled.
I see only one problem: When you press the shortcut and react quickly by pressing it again the messages are shown too long. It would be better to replace the message in the moment when the keys are pressed again, but I found no simple way to implement that.

comment:7 by GerdP, 5 years ago

In 15023/josm:

see #17654: Allow to configure shortcut for "Move Node" action

in reply to:  6 ; comment:8 by Don-vip, 5 years ago

Replying to GerdP:

I see only one problem: When you press the shortcut and react quickly by pressing it again the messages are shown too long. It would be better to replace the message in the moment when the keys are pressed again

This would require an enhancement of the Notification system:

  • add an optional type or id to notifications, allowing to identifying them
  • add a display mode for similar/identical notifications: append or replace
  • adapt NotificationManager accordingly

in reply to:  4 comment:9 by Adrian, 5 years ago

Replying to GerdP:

On the other hand I miss the ability to configure a shortcut for "Edit: Move Node" action.

Several years ago, I discovered a workaround for this problem. Add the button for "Edit: Move Node" to the toolbar. Then you can configure a shortcut. (I use Command+Shift+M on Mac.) Presumably this would work for any other action which has a button, and does not have the possibility to configure a shortcut.

in reply to:  8 comment:10 by GerdP, 5 years ago

Replying to Don-vip:

Replying to GerdP:

I see only one problem: When you press the shortcut and react quickly by pressing it again the messages are shown too long. It would be better to replace the message in the moment when the keys are pressed again

This would require an enhancement of the Notification system:

  • add an optional type or id to notifications, allowing to identifying them
  • add a display mode for similar/identical notifications: append or replace
  • adapt NotificationManager accordingly

The issue came up again in the German forum. Any idea how much work that would be? I guess we can first apply my simple patch?

in reply to:  5 comment:11 by Klumbumbus, 5 years ago

Replying to Don-vip:

Replying to Klumbumbus:

Maybe we should remove that shortcut.

If we remove it, many people will complain.

I don't think so, as long as the users can restore the shortcut in the preferences if they really need it.

Displaying a notification doesn't really solve the problem as this can easily be overlooked.

comment:12 by Klumbumbus, 5 years ago

Ticket #18156 has been marked as a duplicate of this ticket.

comment:13 by Klumbumbus, 5 years ago

Ticket #18239 has been marked as a duplicate of this ticket.

comment:14 by Klumbumbus, 5 years ago

Keywords: Viewport Following added

comment:15 by Don-vip, 4 years ago

Milestone: 20.01
Summary: View Autoscrolling During Way Creation[Patch] Notify users of viewport following activation
Type: defectenhancement

@GerdP: I agree with your patch

comment:16 by GerdP, 4 years ago

I've just learned that it doesn't work well when the shortcut was removed and the mode was switched via menu.
I think in that case it makes no sense to show the popup. Or should I change the text?

by GerdP, 4 years ago

Attachment: 17654-v3.patch added

comment:17 by GerdP, 4 years ago

v3: Only show notification when viewport following mode was changed with shortcut.

comment:18 by Don-vip, 4 years ago

This patch looks fine :) I agree with the shortcut check.

comment:19 by GerdP, 4 years ago

Resolution: fixed
Status: newclosed

In 15705/josm:

fix #17654: Notify users of viewport following activation
Show notification when viewport following mode was activated / deactivated with shortcut

comment:20 by GerdP, 4 years ago

Well, if there is a shortcut and the mode was activated via menu the popup will also appear. No idea if this can be changed.

comment:21 by simon04, 4 years ago

Awesome, so often I managed to press this unknown shortcut and then I was surprised by the strange behaviour! :-)

comment:22 by stoecker, 4 years ago

In 15708/josm:

see #17654 - allow to disable notification

comment:23 by skyper, 4 years ago

Ticket #19408 has been marked as a duplicate of this ticket.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.