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