-
-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dev/user-interface#47 Disable scrolling on time inputs #23264
Conversation
(Standard links)
|
I'm OK with this change. Maybe the reason it hasn't been raised before is because scroll-on-hover is a linux thing. On Mac/Win systems I'm pretty sure the input element would need to be focused before the scroll wheel would affect it. |
I had an internal ticket to fix this back when we upgraded to 4.4.... |
I had reports from users on Windows. Maybe the behaviour changed in recent Windows versions? I'm not sure why the tests are failing. I see maybe stuff like this:
|
jenkins, test this please |
@mlutfy all PR tests are failing at the moment. Might be an issue with the server? |
It's a windows thing too. It's also the cause of mysterious crashes when you go to edit a contribution and don't realize you've accidentally set a time for the receipt date but not a date part. |
civibot, test this please |
@colemanw opps test fails relate to the PR I merged Test Result (3 failures / +3) |
Overview
The time widgets used by CiviCRM are a bit sensitive. Combined to the fact that we often have rather long forms (ex: Event Management), an admin can easily accidentally change the time of an event.
To reproduce:
notice how the time was changed.
I feel like this is not useful at all, because the scrolling is super sensitive, and I find it pretty hard to really set the right time using scrolling.
https://lab.civicrm.org/dev/user-interface/-/issues/47
Before
After
Scrolling over the time input will scroll the page, but not the time.
Technical Details
Widget docs: http://keith-wood.name/timeEntry.html
Comments
A few users complained about this. The scrolling time makes them very uncomfortable about accidentally breaking things.
Drupal9 devs testing this need to run composer so that the
/libraries
folder is updated as well.