Openbravo Issue Tracking System - POS2
View Issue Details
0046581POS2POSpublic2021-05-07 11:372021-07-07 13:56
normalminorhave not tried
0046581: [21Q2] JIRA-1902: The swipe gesture scrolls different in the Carousel component
When using other applications, other webpages or even other components inside the POS, the behaviour of the swipe gesture works in the same way. However, when using the Carousel component, it does not respond to the user actions in the same way. See steps.
Note: Since this report is about gestures, some steps might be difficult to describe. Feel free to contact me to clarify any point if required.

0. Preconditions: The POS is in the main screen, and it has Carousel active for Category (horizontal) and Product (vertical)
1. Execute a short and quick swipe right in Category. Notice the next page is partially shown but the action is not completed and the first page remains. Use the same action in, for example, the device screens, and check it is completed there.
2. Execute a long and slow swipe down in Product. Notice that at some point the new page quickly becomes the active one (i.e. the product where the user started the swipe is not under the user finger anymore). In a native application this does not happen.

Here there is a video comparing current behavior with standard Android OS one: [^]
No tags attached.
depends on backport 0047267TAP closed hernan-dp [21Q2] JIRA-1902: The swipe gesture scrolls different in the Carousel component 
related to defect 0047178 closed AugustoMauch JIRA-1902: First click after changing the keymap page does not select the clicked element 
related to defect 0047357 acknowledged Retail When changing a page on a keymap the speed of the movement is not uniform 
Issue History
2021-05-07 11:37plujanNew Issue
2021-05-07 11:37plujanAssigned To => Retail
2021-05-07 11:37plujanResolution time => 1623016800
2021-05-07 11:37plujanTriggers an Emergency Pack => No
2021-05-07 14:39guilleaerResolution time1623016800 => 1624226400
2021-05-07 14:39guilleaerStatusnew => acknowledged
2021-06-08 09:23dbazSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=22696#r22696
2021-06-14 13:58dmiguelezSummary[21Q2] The swipe gesture scrolls different in the Carousel component => [21Q2] JIRA-1902: The swipe gesture scrolls different in the Carousel component
2021-06-17 12:44dmiguelezAssigned ToRetail => hernan-dp
2021-06-17 12:44dmiguelezStatusacknowledged => scheduled
2021-06-17 12:47dmiguelezResolution time1624226400 => 1625090400
2021-06-28 19:18guilleaerStatusscheduled => acknowledged
2021-06-28 19:18guilleaerStatusacknowledged => scheduled
2021-06-28 19:35guilleaerRelationship addedrelated to 0047178
2021-06-30 18:23hgbotNote Added: 0130037
2021-07-01 15:10guilleaerResolution time1625090400 => 1625608800
2021-07-07 13:21AugustoMauchRelationship addedrelated to 0047357
2021-07-07 13:22AugustoMauchSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=22852#r22852
2021-07-07 13:56hgbotResolutionopen => fixed
2021-07-07 13:56hgbotStatusscheduled => closed
2021-07-07 13:56hgbotNote Added: 0130228
2021-07-07 13:56hgbotNote Added: 0130229

2021-06-30 18:23   
Merge Request created: [^]
2021-07-07 13:56   
Directly closing issue as related merge request is already approved.

Repository: [^]
Changeset: 899088f8cfe2a5ba2843f672124cdbb1166057e7
Author: Angel Eduardo <>
Date: 2021-07-07T13:52:53+02:00
URL: [^]

Fixes ISSUE-46581: Adding optional gesture configuration to BaseKeymap and also makes those values relative to the fontBase.

Also, this commit allows to configure the velocity the gesture has to be made in order to execute the carousel change page triggering.

A web-jspack/org.openbravo.core2/src/components/BaseKeymap/PaginationGesture.config.json
M web-jspack/org.openbravo.core2/src/components/BaseKeymap/BaseKeymap.jsx
M web-jspack/org.openbravo.core2/src/components/BaseKeymap/hooks/usePagination.js
M web-jspack/org.openbravo.core2/src/ob-init.js
2021-07-07 13:56   
Merge request merged: [^]