mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
pointerA11yTimeout: Don't stop the pie timer if it finished successfully
If the pie timeout has finished successfully there's no need to cancel the pie animation, instead we can just wait for that animation to finish and show some visual feedback like a zoom-out animation to indicate the click afterwards. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/688
This commit is contained in:
parent
2c4df6abcf
commit
ea3f906f38
1 changed files with 4 additions and 2 deletions
|
|
@ -110,8 +110,10 @@ var PointerA11yTimeout = class PointerA11yTimeout {
|
|||
global.display.set_cursor(Meta.Cursor.CROSSHAIR);
|
||||
});
|
||||
|
||||
manager.connect('ptr-a11y-timeout-stopped', (manager, device, type) => {
|
||||
pieTimer.stop();
|
||||
manager.connect('ptr-a11y-timeout-stopped', (manager, device, type, clicked) => {
|
||||
if (!clicked)
|
||||
pieTimer.stop();
|
||||
|
||||
if (type == Clutter.PointerA11yTimeoutType.GESTURE)
|
||||
global.display.set_cursor(Meta.Cursor.DEFAULT);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue