-
Notifications
You must be signed in to change notification settings - Fork 459
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
myDash: fix scrolling event propagation.
When the fixed-icon options is set, the scroll event should not propagate to the actor below. However, this was occasionally happening because the condition I was using was not enough. Just use the settings to decide what to do with the scroll event instead.
- Loading branch information
Showing
1 changed file
with
7 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
ab5367d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@micheleg hello, this commit breaks scrolling on the dock to switch workspaces. The shell freezes for 1-2 seconds before restarting. Trying to scroll again then crashes the whole gnome session.
Scrolling on the "Show Applications" icon works fine though.
ab5367d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strange, Which version of the shell are you using?
ab5367d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm using gnome shell 3.18.1 on two different arch linux boxes, and both have the same problem.
I also tried disabling all extensions but dash-to-dock and the problem still persist.
I don't know if it can help, I'm using the extension in panel mode with fixed-size icons on the left side on the screen, not enough icons to fill the dock.
/edit
one box is actually updated to 3.18.2
ab5367d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be fixed now after 4792e4a
ab5367d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now it doesn't freeze/crash anymore, but it works only on the "Show Applications" icon even if there is free space on the dock
ab5367d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was actually the reason of this commit. I was trying to keep the scrolling behaviour when the dock scrolling was not required, but
I choose to just disable the workspace scrolling when the fixed icon size is chosen, limiting this feature to the show apps icon. Do you have any other idea about how to keep the features and consistency?
ab5367d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about limiting the workspace scrolling to a 1 pixel area near the edge of the screen? This way the behavior could be consistent regardless of panel mode and icon size, and it's also a slightly larger (and maybe easier) "hit target"
ab5367d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW I had some time to dive into the code and made a tentative implementation and sent you pull request #249
The only case I found that is a bit ugly is when the dock is positioned at the top under the panel, in that case it's a bit hard to hit the right pixel, but one can still scroll on the "Show Applications" icon, use non-fixed icons to be able to scroll anywhere on the dock, or anyway there are other extensions to switch worskspace by scrolling on the panel
ab5367d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scrolling from the outer pixel in horizontal mode is definitely a bit weird. For the top mode, I don't consider it a real issue as the only situation in which it makes sense to me to have the dock at the top is if the panel is not there for whatever reason.