mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-04 02:28:03 +01:00
Settings: Do not scroll on color picker
This commit is contained in:
parent
37ce132cce
commit
ca3dccba12
@ -10,6 +10,7 @@
|
|||||||
.color-picker {
|
.color-picker {
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
height: 12rem;
|
height: 12rem;
|
||||||
|
touch-action: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hue-picker {
|
.hue-picker {
|
||||||
|
@ -122,6 +122,7 @@ export function captureEvents(element: HTMLElement, options: CaptureOptions) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (options.onDrag) {
|
if (options.onDrag) {
|
||||||
|
e.preventDefault();
|
||||||
options.onDrag(e, captureEvent, { dragOffsetX, dragOffsetY });
|
options.onDrag(e, captureEvent, { dragOffsetX, dragOffsetY });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user