Settings: Do not scroll on color picker

This commit is contained in:
Alexander Zinchuk 2021-05-12 03:13:22 +03:00
parent 37ce132cce
commit ca3dccba12
2 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@
.color-picker {
margin-top: 1rem;
height: 12rem;
touch-action: none;
}
.hue-picker {

View File

@ -122,6 +122,7 @@ export function captureEvents(element: HTMLElement, options: CaptureOptions) {
}
if (options.onDrag) {
e.preventDefault();
options.onDrag(e, captureEvent, { dragOffsetX, dragOffsetY });
}