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

Color Pointer Control movement persistance #326

Open
dar097 opened this issue Nov 23, 2020 · 3 comments
Open

Color Pointer Control movement persistance #326

dar097 opened this issue Nov 23, 2020 · 3 comments

Comments

@dar097
Copy link

dar097 commented Nov 23, 2020

When using any Color Component that has a pointer picker, such as chrome or photoshop, after a mouse click, the pointer keeps following the cursor indefinitely. This is only happening to me on desktop. I tried to provide no settings to the color component to make sure it wasn't something wrong I'm supplying but it still occurred.

Any ideas what could be going wrong?

Angular Version: 10.0.8
Ngx-color Version: 6.1.0

@scttcper
Copy link
Owner

does it happen on the demo? No idea

@dar097
Copy link
Author

dar097 commented Dec 11, 2020

It does not. I tried moving into the main component of the app thought maybe some other feature could be causing the issue but it still happened. Either I have some global style/configuration that's messing it up or I don't know

@ashotnazaryan-yotpo
Copy link

ashotnazaryan-yotpo commented Jul 29, 2022

Hello,

Any updates on this ?
Still having this issue on various versions (3.x, 6.x, 8.x).
When debugging this method

mousemove($event, x, y, isTouch = false) {
        if (this.mouseListening) {
              $event.preventDefault();
              this.mousechange.next({ $event, x, y, isTouch });
        }
}

it fires indefinitely on the desktop, this.mouseListening is always true.
I created a test (empty) app and found no issue.
It may override some configs/styles, anyway would be great to force the method above to fire once at a time.

Here's one more thing, on mobile sometimes getting this issue
[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/feature/5093566007214080
ngx-color.js:125

Thanks.

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

3 participants