Skip to content
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

Merged
merged 9 commits into from
Oct 23, 2024
Merged

feat: add long press mixin #545

merged 9 commits into from
Oct 23, 2024

Conversation

che-effe
Copy link
Contributor

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

  • all commented code has been removed
  • any new console issues have been resolved
  • code linter and formatter has been run
  • test coverage meets repo requirements
  • PR name matches the expected semantic-commit syntax

@CLAassistant
Copy link

CLAassistant commented Oct 21, 2024

CLA assistant check
All committers have signed the CLA.

@che-effe che-effe marked this pull request as draft October 21, 2024 18:45
Copy link
Contributor

@ImCoolNowRight ImCoolNowRight left a 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.

@che-effe che-effe marked this pull request as ready for review October 22, 2024 21:09
@che-effe che-effe changed the title L UI 60/long press feat: add long press mixin Oct 22, 2024
Copy link
Contributor

@ctoddy ctoddy left a 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
😤

@che-effe che-effe merged commit 11d2368 into develop Oct 23, 2024
8 checks passed
@che-effe che-effe deleted the LUI-60/LongPress branch October 23, 2024 20:28
svc-lightning-ui-components pushed a commit that referenced this pull request Oct 23, 2024
# [@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))
@svc-lightning-ui-components
Copy link
Collaborator

🎉 This PR is included in version @lightningjs/ui-components-v2.24.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

svc-lightning-ui-components pushed a commit that referenced this pull request Oct 23, 2024
# [@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))
@svc-lightning-ui-components
Copy link
Collaborator

🎉 This PR is included in version @lightningjs/ui-components-test-utils-v1.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants