mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-02-02 13:51:40 -08:00
fix more bugs. clean up more.
This commit is contained in:
parent
8c8536f34e
commit
ef29f65a25
6 changed files with 497 additions and 261 deletions
|
|
@ -1,8 +1,8 @@
|
|||
(function() {
|
||||
const GRADIO_MIN_WIDTH = 320;
|
||||
const PAD = 16;
|
||||
const DEBOUNCE_TIME = 100;
|
||||
const DOUBLE_TAP_DELAY = 200; //ms
|
||||
const DEBOUNCE_TIME_MS = 250;
|
||||
const DOUBLE_TAP_DELAY_MS = 250;
|
||||
|
||||
const R = {
|
||||
tracking: false,
|
||||
|
|
@ -113,7 +113,7 @@
|
|||
if (evt.changedTouches.length !== 1) return;
|
||||
|
||||
const currentTime = new Date().getTime();
|
||||
if (R.lastTapTime && currentTime - R.lastTapTime <= DOUBLE_TAP_DELAY) {
|
||||
if (R.lastTapTime && currentTime - R.lastTapTime <= DOUBLE_TAP_DELAY_MS) {
|
||||
onDoubleClick(evt);
|
||||
return;
|
||||
}
|
||||
|
|
@ -204,7 +204,7 @@
|
|||
for (const parent of parents) {
|
||||
afterResize(parent);
|
||||
}
|
||||
}, DEBOUNCE_TIME);
|
||||
}, DEBOUNCE_TIME_MS);
|
||||
});
|
||||
|
||||
setupResizeHandle = setup;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue