termux-app/app/src/main/java/com/termux/app
Trygve Aaberge 54bb83de41 Fix calculation of row number for selection and URL clicking
When calculating the row that is clicked, for mouse tracking
mFontLineSpacingAndAscent was taken into account, but for selection and
URL clicking it wasn't. This adds a common function for calculating the
column and row which does take it into account and use that for all
three.

I'm not quite sure why it's necessary to subtract
mFontLineSpacingAndAscent, but with this calculation the click location
matches the line that is acted on for me with both touch and mouse and
on different font sizes.

It also removes the offset for finger the selection/url used because I
don't think it's common for apps on Android to have such an offset, and
because the mouse tracking did not use such an offset.
2021-09-19 18:10:46 +02:00
..
activities Added: Add log level setting in Termux Settings for termux-widget 2021-09-04 08:33:30 +05:00
fragments/settings Added: Add log level setting in Termux Settings for termux-widget 2021-09-04 08:33:30 +05:00
models Move ReportActivity to termux-shared so that other termux plugins can use it too 2021-06-21 04:59:11 +05:00
settings/properties Fixed: Fix typos and refactor 2021-09-05 03:37:07 +05:00
terminal Fix calculation of row number for selection and URL clicking 2021-09-19 18:10:46 +02:00
utils Changed!: Changes introduced to disable/change logging in 60f37bde now also apply to stdin and plugin command results 2021-08-21 05:26:33 +05:00
RunCommandService.java Changed: Make sure full path is included in FileUtilsErrnos 2021-09-05 10:09:18 +05:00
TermuxActivity.java Added: Allow users to disable auto capitalization of extra keys text 2021-09-05 04:24:00 +05:00
TermuxApplication.java Move Termux app specific logic out of CrashHandler 2021-07-01 04:21:02 +05:00
TermuxInstaller.java Changed/Fixed: Ensure bootstrap installation creates prefix and prefix staging directory before extraction 2021-09-04 08:06:25 +05:00
TermuxOpenReceiver.java Fixed: Fix typos and refactor 2021-09-05 03:37:07 +05:00
TermuxService.java Fixed: Fix typos and refactor 2021-09-05 03:37:07 +05:00