framework7io / framework7io/framework7

add onDragEnd event on color picker

Open
#3,149 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Request
Dominant language
JavaScript
Stars
18.8k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

My app render an image preview via API. In example, https://api.example.com/preview?text=test&color=FFFFFF. Its return an image with custom text and text color.

The newest component, color picker is great. The little problem is that have only onChange event.

So, I can't render my image preview every drag change on the color picker.

I think I can use timeout method this time. But it will be great if you can add an event like onDragEnd or onAfterChange, where fires when user stop dragging the color picker, or at mouse up / touch end.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the color picker component and its existing onChange event handling. Check how mouse and touch interactions are represented, then verify that the new event fires when dragging ends and that the component's event documentation or examples describe the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.