File tree 1 file changed +1
-3
lines changed
src/components/HTMLEngineProvider/HTMLRenderers/PreRenderer 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,7 @@ class PreRenderer extends React.Component {
31
31
const node = this . ref . getScrollableNode ( ) ;
32
32
const horizontalOverflow = node . scrollWidth > node . offsetWidth ;
33
33
34
- /* Scrolling horizontally with two fingers on the touchpads,
35
- the fingers may go up a little during that scroll, and the page will
36
- start to scroll vertically. We eliminate this bug by checking the large delta. */
34
+ // Account for vertical scrolling variation when horizontally scrolling via touchpad by checking a large delta.
37
35
const isVerticalScrolling = Math . abs ( event . deltaY ) > 3 ; // This is for touchpads sensitive
38
36
if ( ( event . currentTarget === node ) && horizontalOverflow && ! isVerticalScrolling ) {
39
37
node . scrollLeft += event . deltaX ;
You can’t perform that action at this time.
0 commit comments