ngx-color icon indicating copy to clipboard operation
ngx-color copied to clipboard

Color Pointer Control movement persistance

Open dar097 opened this issue 4 years ago • 3 comments

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

dar097 avatar Nov 23 '20 12:11 dar097

does it happen on the demo? No idea

scttcper avatar Nov 23 '20 18:11 scttcper

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

dar097 avatar Dec 11 '20 14:12 dar097

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.

ashotnazaryan-yotpo avatar Jul 29 '22 08:07 ashotnazaryan-yotpo