Openbravo Issue Tracking System - POS2
View Issue Details
0046665POS2POSpublic2021-05-13 16:322023-08-31 14:51
jarmendariz 
jarmendariz 
normalmajorhave not tried
closedfixed 
5
 
23Q4 
No
0046665: Product popover does not appear after long click on iPad
Although it works on desktop and in Android devices, long clicking a product button on iPad does not open the product card
See above

It was tested on Chrome for iOS
No tags attached.
Issue History
2021-05-13 16:32jarmendarizNew Issue
2021-05-13 16:32jarmendarizAssigned To => Retail
2021-05-13 16:32jarmendarizTriggers an Emergency Pack => No
2021-05-13 16:44jarmendarizSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=22518#r22518
2021-05-13 19:33guilleaerResolution time => 1624831200
2021-05-13 19:33guilleaerSeveritymajor => minor
2021-05-13 19:33guilleaerStatusnew => acknowledged
2021-07-14 13:12dmiguelezResolution time1624831200 => 1633039200
2023-06-27 11:31AugustoMauchAssigned ToRetail => jarmendariz
2023-06-28 10:33AugustoMauchSeverityminor => major
2023-07-26 12:19jarmendarizNote Added: 0152881
2023-07-31 08:29AugustoMauchTypedefect => design defect
2023-08-24 12:26jarmendarizStatusacknowledged => scheduled
2023-08-24 14:02hgbotNote Added: 0153924
2023-08-31 14:51hgbotResolutionopen => fixed
2023-08-31 14:51hgbotStatusscheduled => closed
2023-08-31 14:51hgbotFixed in Version => 23Q4
2023-08-31 14:51hgbotNote Added: 0154253
2023-08-31 14:51hgbotNote Added: 0154254

Notes
(0152881)
jarmendariz   
2023-07-26 12:19   
This issue is caused because WebKit on iOS does not support onContextMenu events (https://caniuse.com/mdn-api_element_contextmenu_event [^]), which is the event we use in buttons for actions when the user right click on desktop devices, or long-press on mobile devices.

As Apple doesn't seem to have plans to fix this in the short-term, a possible fix is to use some logic that emulates the long click event on iOS devices in order to be able to execute those actions in those devices. A possible implementation we could use is useLongPress (https://www.npmjs.com/package/use-long-press [^]), but first we need to check that by using this we could workaround this problem.
(0153924)
hgbot   
2023-08-24 14:02   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1216 [^]
(0154253)
hgbot   
2023-08-31 14:51   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: a06735660d6c3b9891005d83bd3a458194acc51d
Author: Javier Armendáriz <javier.armendariz@openbravo.com>
Date: 31-08-2023 12:51:04
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/a06735660d6c3b9891005d83bd3a458194acc51d [^]

Fixed ISSUE-46665: Using external hook to detect long click to support long click events on iOS

---
M web-jspack/org.openbravo.core2/package-lock.json
M web-jspack/org.openbravo.core2/package.json
M web-jspack/org.openbravo.core2/src/components/BaseButton/BaseButton.jsx
---
(0154254)
hgbot   
2023-08-31 14:51   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1216 [^]