react-color-gradient-picker
react-color-gradient-picker copied to clipboard
Mouse position is calculated in reference to the window
I'm using the component in a draggable fixed div, when the drag occurs in horizontal the mouse position is bad calculated . exemple in: https://codesandbox.io/s/material-demo-forked-0qfek?file=/demo.js
Hey! Please take a look at my PR on the vue project that fixes this issue. Hope it helps!
https://github.com/arthay/vue-color-gradient-picker/pull/28