Skip to content

Commit a1209f7

Browse files
authored
Merge pull request #9089 from gitbutlerapp/kv-branch-26
Disable double click resize
2 parents 24b50a8 + c5ab85e commit a1209f7

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

apps/desktop/src/components/Resizer.svelte

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,15 @@
179179
});
180180
181181
function cycleWidth() {
182-
if (direction === 'up' || direction === 'down') return;
183-
const width = $value || viewport.offsetWidth;
184-
if (width && width > maxWidth / 2) {
185-
value.set(Math.floor(width / 2));
186-
} else if (width) {
187-
value.set(Math.floor(width * 2));
188-
}
182+
// noop for now - way too many false positives where accidentally double-clicking causes content shift
183+
//
184+
// if (direction === 'up' || direction === 'down') return;
185+
// const width = $value || viewport.offsetWidth;
186+
// if (width && width > maxWidth / 2) {
187+
// value.set(Math.floor(width / 2));
188+
// } else if (width) {
189+
// value.set(Math.floor(width * 2));
190+
// }
189191
}
190192
</script>
191193

0 commit comments

Comments
 (0)