mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-06 01:02:02 -08:00
fix lint and console warning
This commit is contained in:
parent
85abbbb8fa
commit
ab1e0fa9bf
1 changed files with 11 additions and 8 deletions
|
|
@ -111,13 +111,16 @@
|
|||
}
|
||||
|
||||
if (R.tracking) {
|
||||
if (eventType.startsWith('mouse')) {
|
||||
evt.preventDefault();
|
||||
}
|
||||
evt.stopPropagation();
|
||||
|
||||
let delta = 0;
|
||||
if (eventType.startsWith('mouse')) {
|
||||
var delta = R.screenX - evt.screenX;
|
||||
delta = R.screenX - evt.screenX;
|
||||
} else {
|
||||
var delta = R.screenX - evt.changedTouches[0].screenX;
|
||||
delta = R.screenX - evt.changedTouches[0].screenX;
|
||||
}
|
||||
const leftColWidth = Math.max(Math.min(R.leftColStartWidth - delta, R.parent.offsetWidth - GRADIO_MIN_WIDTH - PAD), GRADIO_MIN_WIDTH);
|
||||
setLeftColGridTemplate(R.parent, leftColWidth);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue