Skip to content

Commit 98be3f4

Browse files
committed
refactor: change height and add condition on prevent default
1 parent fc9c75d commit 98be3f4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

frappe/public/js/frappe/form/grid.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,11 @@ export default class Grid {
134134
} else {
135135
scroll_bar.scrollLeft(scroll_bar.scrollLeft() + delta * 4);
136136
}
137-
e.preventDefault();
137+
138+
// prevent default behaviour when it is scrolled horizontally
139+
if (e.originalEvent.deltaX != 0) {
140+
e.preventDefault();
141+
}
138142
});
139143
let touchStartX = 0;
140144
let touchMoveX = 0;

frappe/public/scss/common/grid.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@
332332
}
333333
}
334334
.data-row div[data-fieldname="options"] {
335-
height: 39px;
335+
height: 40px;
336336
}
337337
}
338338

0 commit comments

Comments
 (0)