-
Notifications
You must be signed in to change notification settings - Fork 327
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
Feat/improve time picker behavior #1827
Feat/improve time picker behavior #1827
Conversation
feat: add auto selection on scroll
feat: remove animated scroll
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.
Looks good. I worry about scroll animation and lots of constants.
packages/ui/src/components/va-time-picker/VaTimePickerColumn/VaTimePickerColumn.vue
Outdated
Show resolved
Hide resolved
packages/ui/src/components/va-time-picker/VaTimePickerColumn/VaTimePickerColumn.vue
Outdated
Show resolved
Hide resolved
packages/ui/src/components/va-time-picker/VaTimePickerColumn/VaTimePickerColumn.vue
Outdated
Show resolved
Hide resolved
packages/ui/src/components/va-time-picker/VaTimePickerColumn/VaTimePickerColumn.vue
Outdated
Show resolved
Hide resolved
packages/ui/src/components/va-time-picker/VaTimePickerColumn/VaTimePickerColumn.vue
Outdated
Show resolved
Hide resolved
packages/ui/src/components/va-time-picker/VaTimePickerColumn/VaTimePickerColumn.vue
Outdated
Show resolved
Hide resolved
packages/ui/src/components/va-time-picker/VaTimePickerColumn/VaTimePickerColumn.vue
Outdated
Show resolved
Hide resolved
feat: set to the frame cell height from a variable
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.
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.
Code-wise looks nice, but needs some work with implementation. :)
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 seems a bit buggy when cursor is hovered on hours \ minutes.
Rolls back often.
|
@@ -1134,12 +1134,15 @@ | |||
}, | |||
"VaTimePicker": { |
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.
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.
Update:
Now bug shows only when clicking a few times at the bottom.
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.
Still relevant - you need to scroll down with am\pm mode active and select 8 hours.
@@ -1134,12 +1134,15 @@ | |||
}, | |||
"VaTimePicker": { |
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.
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.
Still relevant
@@ -1134,12 +1134,15 @@ | |||
}, | |||
"VaTimePicker": { |
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.
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.
Still relevant
packages/ui/src/components/va-time-picker/components/VaTimePickerColumn/VaTimePickerColumn.vue
Show resolved
Hide resolved
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.
Looks much better than before
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.
Checked this once more - still have these issues.
- Selecting time at the bottom:
- Scrolling:
- AM \ PM toggle:
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.
We decided to move back a bit and use one modelValue
for all Timepickers
in the demo
and make them work.
It means fixing these issues:
Checked this once more - still have these issues.
- Selecting time at the bottom:
- Scrolling:
- AM \ PM toggle:
After discussion with @Derranion, we decided to merge PR and create a new issue with am/pm flags. |
Changes
time-picker-scroll.mp4
framed
.Docs
Types of changes
Close #1549.