-
Notifications
You must be signed in to change notification settings - Fork 23
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: add long press mixin #545
Conversation
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.
Just a few thoughts on the mixin portion. I know the rest is still WIP.
packages/@lightningjs/ui-components/src/mixins/withLongPress/index.js
Outdated
Show resolved
Hide resolved
packages/@lightningjs/ui-components/src/mixins/withLongPress/index.js
Outdated
Show resolved
Hide resolved
packages/@lightningjs/ui-components/src/mixins/withLongPress/withLongPress.mdx
Outdated
Show resolved
Hide resolved
packages/@lightningjs/ui-components/src/mixins/withLongPress/index.js
Outdated
Show resolved
Hide resolved
packages/@lightningjs/ui-components/src/mixins/withLongPress/withLongPress.stories.js
Outdated
Show resolved
Hide resolved
packages/@lightningjs/ui-components/src/mixins/withLongPress/index.js
Outdated
Show resolved
Hide resolved
packages/@lightningjs/ui-components/src/mixins/withLongPress/index.js
Outdated
Show resolved
Hide resolved
packages/@lightningjs/ui-components/src/mixins/withLongPress/index.js
Outdated
Show resolved
Hide resolved
packages/@lightningjs/ui-components/src/mixins/withLongPress/index.js
Outdated
Show resolved
Hide resolved
packages/@lightningjs/ui-components/src/mixins/withLongPress/withLongPress.stories.js
Outdated
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.
l
g
t
m
😤
71cc605
to
a6e0141
Compare
# [@lightningjs/ui-components-v2.24.0](https://github.com/rdkcentral/Lightning-UI-Components/compare/@lightningjs/ui-components-v2.23.3...@lightningjs/ui-components-v2.24.0) (2024-10-23) ### Bug Fixes * move type export up ([#547](#547)) ([55e8d4c](55e8d4c)) * **ScrollWrapper:** bubble focus events and remove signals ([#546](#546)) ([ceec205](ceec205)) ### Features * add long press mixin ([#545](#545)) ([11d2368](11d2368))
🎉 This PR is included in version @lightningjs/ui-components-v2.24.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [@lightningjs/ui-components-test-utils-v1.6.0](https://github.com/rdkcentral/Lightning-UI-Components/compare/@lightningjs/ui-components-test-utils-v1.5.0...@lightningjs/ui-components-test-utils-v1.6.0) (2024-10-23) ### Bug Fixes * move type export up ([#547](#547)) ([55e8d4c](55e8d4c)) ### Features * add long press mixin ([#545](#545)) ([11d2368](11d2368))
🎉 This PR is included in version @lightningjs/ui-components-test-utils-v1.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Creates a Long Press handler mixin that can work with any key. Component with this mixin has to set a threshold in ms to define long press length and also have a signal listers for
longPressHit
signal.Handler method supplied will be called when long press threshold is reached and will recieve the key value that was pressed.
Client can then execute as they wish on any long pressed key they desire.
References
LUI-60
Testing
View
withLongPress
story in storybook and make sure the component works as described above.Checklist