Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Watch the screencast: https://www.drupal.org/files/issues/Settings%20Tray%20weird%20autoscroll.... This is an unintentional animation that is causing a usability problem.
Note that this may induce nausea in people with motion sickness, so it's also an accessibility problem.
Proposed resolution
Remove the animation.
Remaining tasks
None.
User interface changes
One unintentional animation change less.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#5 | 2896143-5.patch | 602 bytes | tedbow |
#3 | core_autoscroll_bug.mp4 | 664.15 KB | tedbow |
Settings Tray weird autoscroll.mp4 | 1.73 MB | Wim Leers |
Comments
Comment #2
Wim LeersComment #3
tedbowI am seeing the same animation jump without Settings Tray installed. Can you(or someone) else confirm it happens regardless of whether Settings Tray module is enabled.
Comment #4
Wim LeersI don't see actual scrolling/animating in #3? What I'm seeing there is toolbar jumpiness.
Jumpiness vs smooth scrolling.
Perhaps it has the same root cause, but Settings Tray's CSS is making the core bug's jumpiness smoothly animated? That'd be hilarious :D :D
Comment #5
tedbowOk I think I found the offending CSS.
Not sure why it was there. Maybe to animate the toolbar change when going into edit mode. Seems fine without it.
Comment #6
DyanneNovaThis looks good to me!
I think the animation effect could be nice if working correctly, but I don't think Settings Tray should be overriding toolbar styling for general activity. If we want to add the effect back at some point I think it should belong in Toolbar.
Comment #7
Wim LeersManually tested, fix confirmed!
Comment #8
lauriiiIt would be great to have the user interface changes for the settings tray in the issue summary
Comment #9
Wim LeersComment #11
xjmThis bug indeed makes it frustrating to use Drupal when Settings Tray is enabled, because the sliding around happens even when the tray is not in Edit mode.
I tested this patch with various combinations of:
I identified several other bugs, but confirmed that they existing in HEAD:
If anyone knows of existing bug reports for the above, please do link them. Meanwhile, I committed this fix to 8.4.x and cherry-picked it to 8.3.x since it's still alpha experimental. Thanks everyone!
Comment #12
tacituseu CreditAttribution: tacituseu commentedCherry-pick didn't make it to the 8.3.x.
Comment #14
xjmThanks @tacituseu, helps if I push both branches. :)
Comment #15
Wim LeersI just realized while looking at the committed patch that elsewhere in the file there's simply dead CSS: #2897306: Remove dead CSS.
Comment #16
Wim Leers#11:
Comment #18
tedbowChanging to new settings_tray.module component. @drpal thanks for script help! :)