Bug 128509 - Select column/row not working in a writer table on iOS
Summary: Select column/row not working in a writer table on iOS
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: iOS Editor (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: Other iOS
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:6.5.0
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-31 14:35 UTC by Nicolas Christener
Modified: 2020-01-22 15:40 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Printscreen showing the grey area which should select a column/row (653.20 KB, image/png)
2019-10-31 14:36 UTC, Nicolas Christener
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Christener 2019-10-31 14:35:44 UTC
Description:
Tables in writer on iOS have a grey area left/above the table which is meant to select a column/row when taping on it.

This does currently not work and the area above the second column always has a different style than the other grey areas (dashed lines instead of continuous lines).

Steps to Reproduce:
1. Open/create a writer document using the iOS app
2. Add table to the document
3. Click into a cell to put the focus into the table
4. Try to select a column/row using the grey area between the table and the resize handles

Actual Results:
Taping on the grey area does not trigger the selection of the column/row.

Expected Results:
Taping on the grey area should trigger the selection of the column/row.


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 Nicolas Christener 2019-10-31 14:36:22 UTC
Created attachment 155429 [details]
Printscreen showing the grey area which should select a column/row
Comment 2 Nicolas Christener 2019-11-20 13:21:40 UTC
This is still an issue with the iOS app version 4.2.20 but it seems to be fixed in a pre-release of Collabora Online:

LOOLWSD
4.1.99 (git hash 617886d)
Served by: be7e8350

LOKit
6.2-1 (git hash df6296b)

Maybe the issue does only happen with the "iOS app theme"?
Comment 3 How can I remove my account? 2020-01-02 11:25:15 UTC
This is one more of those bugs that probably are caused by changes in WebKit in iOS 13. Safari and WebKit in iOS 13 on iPad now strive to provide a more "desktop-like" browsing experience, and they also have added support for the PointerEvent things. One theory I have is that the ancient Leaflet code that we use is quite confused about PointerEvents and use them wrongly, or something. Hacks upon hacks of trying to adapt to specific browser and platform changes.
Comment 4 How can I remove my account? 2020-01-02 13:20:33 UTC
Based on some discussion I found on the web I tried to force the L.Browser.pointer to be false for us, but that had no effect.
Comment 5 How can I remove my account? 2020-01-02 14:45:41 UTC
Or then it is the Hammer thing for the whole document map that interferes. Tediously trying to trace event handing in Safari I see that the _onTap in loleaflet/src/map/handler/Map.TouchGesture.js gets called.
Comment 6 How can I remove my account? 2020-01-16 13:11:56 UTC
And also, in loleaflet/src/layer/tile/TileLayer.TableOverlay.js, the _onSelectRowColumnClick function is the handler only for the 'click' event, and apparently in this case no 'click' event will be generated when tapping on the column or row header. Or maybe some code deep down somewhere disables the generation of a such.
Comment 7 How can I remove my account? 2020-01-17 08:51:11 UTC
In a current build (also reproducible in "make run") there is another related problem: If the text document also contains a shape, and one selects the shape, after that it isn't possible to select the table at all... I feel like running away screaming.
Comment 8 How can I remove my account? 2020-01-17 12:21:38 UTC
(But that was caused by a recent commit in core and will hopefully be fixed soon. Not related to this bug.)
Comment 9 How can I remove my account? 2020-01-20 14:59:30 UTC
Suggested fix in https://gerrit.libreoffice.org/c/online/+/87079 . There are still some glitches, for instance resizing a column or row doesn't refresh the row and column headers rectangles.
Comment 10 Commit Notification 2020-01-21 09:29:05 UTC
Tor Lillqvist committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/online/commit/ebaca16c4f28ae7a499c632b70b24eaaa1083439

tdf#128509: Make the column and row headers tappable on touch devices
Comment 11 Nicolas Christener 2020-01-22 15:04:40 UTC
This issue has been fixed and can be closed. Tested with 4.2 (32).

Thanks a lot to the Collabora team and especially Tor for fixing this!