[FIX] Spreadsheet: Fix scroll issues in mobile#6082
Conversation
e4549b9 to
144566d
Compare
|
|
||
| const HorizontalScrollFactor = 1; | ||
|
|
||
| // TODO merge it with the stop scroll of lucas |
| @@ -7,6 +7,7 @@ import { GridPopover } from "../grid_popover/grid_popover"; | |||
| import { css, cssPropertiesToCss } from "../helpers/css"; | |||
There was a problem hiding this comment.
Other commit seems useless, the isMobile helpers are never used
| const verticalScrollFactor = 1; | ||
|
|
||
| const HorizontalScrollFactor = 1; |
There was a problem hiding this comment.
These factors seem useless is the value is 1 ?
There was a problem hiding this comment.
I kept them in case i should fine tune through the testing phase
|
|
||
| const verticalScrollFactor = 1; | ||
|
|
||
| const HorizontalScrollFactor = 1; |
There was a problem hiding this comment.
| const HorizontalScrollFactor = 1; | |
| const horizontalScrollFactor = 1; |
or all caps.
144566d to
9402c7e
Compare
LucasLefevre
left a comment
There was a problem hiding this comment.
Looking good 👍
only a small question.
| const clientX = ev instanceof MouseEvent ? ev.clientX : ev.touches[0].clientX; | ||
| const clientY = ev instanceof MouseEvent ? ev.clientY : ev.touches[0].clientY; |
There was a problem hiding this comment.
in which case is this a MouseEvent or a TouchEvent ?
There was a problem hiding this comment.
good question, it should be a touchevent 100% of the time so that helper doesn't really make sense .. i'll loot into it
There was a problem hiding this comment.
@LucasLefevre I removed the helper, it really was useless
Currently, the scroll via touch is barely supported and only on the grid overlay DOM element, which means that you cannot scroll if you pass your finger on a figure for instance. This task tries to help out specifically in dashboard mode as there are no interactions with the different components (no drag and drop of components, grid selection, etc...); in edition mode, the mobile is still barely usable but this will be addressed in master considering the number of modifications required. Task: 4720073
9402c7e to
5e4da6d
Compare

Description:
Currently, the scroll via touch is barely supported and only on the grid overlay DOM element, which means that you cannot scroll if you pass your finger on a figure for instance.
This task tries to help out specifically in dashboard mode as there are no interactions with the different components (no drag and drop of components, grid selection, etc...).
Task: 4720073
description of this task, what is implemented and why it is implemented that way.
Task: 4720073
review checklist