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

Alternate event to color-changed #104

Open
binaryfire opened this issue Jan 14, 2024 · 1 comment
Open

Alternate event to color-changed #104

binaryfire opened this issue Jan 14, 2024 · 1 comment

Comments

@binaryfire
Copy link

Hi guys. Thanks for the great package.

When using JS components in Laravel Livewire, every event triggers a server request. So using color-changed can be quite brutal on the server because a request is fired for every pixel moved when users are dragging the selector.

Would it be possible to add an additional event which fires only when dragging is complete? That would allow us to send a single request after a user has stopped moving the selector.

@au5ton
Copy link

au5ton commented Mar 17, 2024

If we're staying true to HTML, color-changed should be an input event and when the drag completes it should be a change event.

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

No branches or pull requests

2 participants