[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-03-09 Thread Tyson Tan
https://bugs.kde.org/show_bug.cgi?id=463115

--- Comment #26 from Tyson Tan  ---
Thanks Sharaf! I've tested the new APK, and I can confirm that the bugs has
been fixed.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-03-08 Thread sh_zam
https://bugs.kde.org/show_bug.cgi?id=463115

--- Comment #25 from sh_zam  ---
I've attached an APK for some other MR, but it contains fix for this bug as
well, link is in the MR:
https://invent.kde.org/graphics/krita/-/merge_requests/1771 :)

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-03-08 Thread sh_zam
https://bugs.kde.org/show_bug.cgi?id=463115

--- Comment #24 from sh_zam  ---
Hi!

I've fixed the bug again, and this time the fix also includes the Right mouse
button press. It used to work when Krita was on 5.12, but the bug reappeared
when we updated Qt version :)

It is good that we found the bug now and not from the releases. Thanks for
reporting! And feel free to test (it should be available in the next nightly
once dependencies are freshly built)

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-03-08 Thread sh_zam
https://bugs.kde.org/show_bug.cgi?id=463115

sh_zam  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |FIXED
  Latest Commit|https://invent.kde.org/grap |https://invent.kde.org/grap
   |hics/krita/-/commit/c9a6df1 |hics/krita/commit/0bc6830d4
   |33e5926bdca53dccc5c6cc4a60f |7e931f8d85cc57590350dfe55a2
   |6b212b  |2898

--- Comment #23 from sh_zam  ---
Git commit 0bc6830d47e931f8d85cc57590350dfe55a22898 by Sharaf Zaman.
Committed on 09/03/2023 at 05:35.
Pushed by szaman into branch 'master'.

Update the QT_TAG

The fixes include:

1. fixing the bug with S-pen buttons not getting recognized when the
stylus is being hovered.

2. Fixing the code of passing mouse events. For example, you couldn't
double click in Qt5.15. Now it should work like before.

M  +1-13rdparty/ext_qt/CMakeLists.txt

https://invent.kde.org/graphics/krita/commit/0bc6830d47e931f8d85cc57590350dfe55a22898

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-03-02 Thread Tyson Tan
https://bugs.kde.org/show_bug.cgi?id=463115

--- Comment #22 from Tyson Tan  ---
Anyway, I suppose the original bug in this report has been fixed in your latest
APK. Maybe we should just mark this bug as fixed, and call it a day? 

I guess the issues I mentioned in Comment 18 and Comment 21 were not caused by
your code. Perhaps, they have always been there, I just never paid attention.

Krita not being able to recognize RMB on its canvas is a serious bug,
nonetheless. Especially when we routinely recommend users to use Krita with a
keyboard.

It seems every Android tablet device invents a different way to deal with
RMB/Context Menu events, making it troublesome to support each device properly.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-03-02 Thread Tyson Tan
https://bugs.kde.org/show_bug.cgi?id=463115

--- Comment #21 from Tyson Tan  ---
Created attachment 156925
  --> https://bugs.kde.org/attachment.cgi?id=156925=edit
Mouse and trackpad Settings page of Galaxy Tab S8

The trackpad on the Samsung official keyboard cover can only produce a
Left-Mouse-Button event. 
The trackpad's "Right Click" does not produce a Right-Mouse-Button event. 
It produces an "Opens Contextual Menu" signal instead. 
Krita doesn't seem to recognize that signal.

A Bluetooth mouse can produce a proper Right-Mouse-Button event on Galaxy Tab
S8. 
But if in System Settings, the Secondary button is set to None (default is Open
Contextual Menu), then RMB is lost.

Krita recognizes RMB event in its configuration dialogue.
However, it doesn't recognize RMB on its canvas.

On Krita's canvas, the first click from a touchpad/mouse is always recognized
as "start of a brush stroke", and the second click recognized as "ending of a
brush stroke", regardless of Left/Right button.

Notes: 
Galaxy Tab S8 has been updated to the latest One UI 5.1.
The keyboard cover has received a firmware update since the initial report.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-03-02 Thread sh_zam
https://bugs.kde.org/show_bug.cgi?id=463115

--- Comment #20 from sh_zam  ---
(In reply to Tyson Tan from comment #18)
> Created attachment 156869 [details]
> Krita debug tablet and mouse event log
> 
> Hi Sharaf, the second APK was able to install, and the S-PEN's side button
> now works as intended.
> 
> But the touchpad event is now all messed up.
> 
> 1) Krita can only receive Left Button click from the touchpad. It ignores
> the touchpad's right click events completely (either by clicking on the
> touchpad's buttom-right corner / or using the 2-finger tapping gesture).
> These right-clicks works as intended outside of Krita. "Use mouse event for
> right click" didn't help.
> 
> 2) Left click on canvas sometimes initiates brush strokes, and the stroke
> continues to draw even when the left button is released. I must do another
> left click to end the stroke.
> 
> 3) Mouse cursor on canvas is still missing after the S-Pen is in range and
> then removed from range.
> 
> I've recorded another input log, and attached in this comment.

This is weird. Because I didn't touch any of the code which deals with
Touchpad... is this behavior reproducible even if you use a mouse? Because I
couldn't reproduce with my mouse.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-03-01 Thread Tyson Tan
https://bugs.kde.org/show_bug.cgi?id=463115

--- Comment #19 from Tyson Tan  ---
Oh, by the way, don't worry about the config data. They are gone. No big deal
though, just 15 minutes of re-setting everything. That's why I always use only
the default brushes. XD

I think by checking the option of "Keep all the data", the only data it would
keep, was the permissions allowed for the app. All data in
/Android/data/org.krita.next/files/ were removed at uninstall, regardless of
what you do.

Well, at least now I know I can backup/restore the data via MTP...

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-03-01 Thread Tyson Tan
https://bugs.kde.org/show_bug.cgi?id=463115

--- Comment #18 from Tyson Tan  ---
Created attachment 156869
  --> https://bugs.kde.org/attachment.cgi?id=156869=edit
Krita debug tablet and mouse event log

Hi Sharaf, the second APK was able to install, and the S-PEN's side button now
works as intended.

But the touchpad event is now all messed up.

1) Krita can only receive Left Button click from the touchpad. It ignores the
touchpad's right click events completely (either by clicking on the touchpad's
buttom-right corner / or using the 2-finger tapping gesture). These
right-clicks works as intended outside of Krita. "Use mouse event for right
click" didn't help.

2) Left click on canvas sometimes initiates brush strokes, and the stroke
continues to draw even when the left button is released. I must do another left
click to end the stroke.

3) Mouse cursor on canvas is still missing after the S-Pen is in range and then
removed from range.

I've recorded another input log, and attached in this comment.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-02-28 Thread sh_zam
https://bugs.kde.org/show_bug.cgi?id=463115

--- Comment #17 from sh_zam  ---
Let's try again:
https://drive.google.com/file/d/1PCpq92YRzdiEjMsR3TSwWfFv9Rap4zZ5/view?usp=sharing
(it's the same url but I've uploaded a different APK).

About losing your config, please check ~/Android/data/org.krita.next/files
folder to see if there's any of your config present there. Also did you happen
to change the resource location (that can make the resources be not found)?

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-02-28 Thread Tyson Tan
https://bugs.kde.org/show_bug.cgi?id=463115

--- Comment #16 from Tyson Tan  ---
The normal Krita Next is APK 114.1MiB.
Your APK is 136.3 MiB, which is significantly bigger.
Could it be something wrong in the building configuration?

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-02-28 Thread Tyson Tan
https://bugs.kde.org/show_bug.cgi?id=463115

--- Comment #15 from Tyson Tan  ---
Created attachment 156853
  --> https://bugs.kde.org/attachment.cgi?id=156853=edit
krita-s-pen-events.apk install failed screen

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-02-28 Thread Tyson Tan
https://bugs.kde.org/show_bug.cgi?id=463115

--- Comment #14 from Tyson Tan  ---
Created attachment 156852
  --> https://bugs.kde.org/attachment.cgi?id=156852=edit
krita-s-pen-events.apk pre-install screen

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-02-28 Thread Tyson Tan
https://bugs.kde.org/show_bug.cgi?id=463115

--- Comment #13 from Tyson Tan  ---
No I didn't. I've only installed Krita Next. And I tried to uninstall Krita
Next and install yours, but the error remained the same.

...and for some reason this deleted all my settings (I checked the keep all
data box) I wanna die right now XD

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-02-28 Thread sh_zam
https://bugs.kde.org/show_bug.cgi?id=463115

--- Comment #12 from sh_zam  ---
It will be named "Krita Debug", if it is "Krita Next" or the one from Play
Store they shouldn't conflict with this.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-02-28 Thread sh_zam
https://bugs.kde.org/show_bug.cgi?id=463115

--- Comment #11 from sh_zam  ---
That's strange. Can you please check if you have some other version of Krita
Debug installed? If yes, you may have to uninstall it.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-02-28 Thread Tyson Tan
https://bugs.kde.org/show_bug.cgi?id=463115

--- Comment #10 from Tyson Tan  ---
Hi Sharaf, the APK file you posted in Comment 9 seems to be broken. 
My Galaxy Tab S8 reported "Invalid Package" and refused to install it. 

I've tried to download it multiple times using different means, the result was
the same. 
The file size is 136.3 MiB, which seems to be correct.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-02-27 Thread sh_zam
https://bugs.kde.org/show_bug.cgi?id=463115

--- Comment #9 from sh_zam  ---
Hello! Can you please test this:
https://drive.google.com/file/d/1PCpq92YRzdiEjMsR3TSwWfFv9Rap4zZ5/view?usp=sharing
:)

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-02-26 Thread sh_zam
https://bugs.kde.org/show_bug.cgi?id=463115

sh_zam  changed:

   What|Removed |Added

   Assignee|krita-bugs-n...@kde.org |sh...@sdf.org

--- Comment #8 from sh_zam  ---
Clearly an oversight on my part! Thanks for letting me know!

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-02-26 Thread amyspark
https://bugs.kde.org/show_bug.cgi?id=463115

amyspark  changed:

   What|Removed |Added

 Resolution|FIXED   |---
 Status|RESOLVED|REOPENED
 Ever confirmed|0   |1

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-02-26 Thread Tyson Tan
https://bugs.kde.org/show_bug.cgi?id=463115

--- Comment #7 from Tyson Tan  ---
It seems that the expected behavior of "Hover Click" has been replaced with
"Hold and tap" under Android.

I did not observe this issue on Linux.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-02-26 Thread Tyson Tan
https://bugs.kde.org/show_bug.cgi?id=463115

--- Comment #6 from Tyson Tan  ---
Hi Shzam,
After upgrading to the latest nighty, the touchpad works after s-pen is in
range. Thanks!

However, the S-Pen's side button events seems to be broken now.

I used to be able to being up the Pop-up Palette by simply pressing S-Pen's
side button. The even was recognized as a Middle Click. Now I must hold the
side button and tap the screen to trigger middle click.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-02-25 Thread sh_zam
https://bugs.kde.org/show_bug.cgi?id=463115

sh_zam  changed:

   What|Removed |Added

  Latest Commit||https://invent.kde.org/grap
   ||hics/krita/-/commit/c9a6df1
   ||33e5926bdca53dccc5c6cc4a60f
   ||6b212b
 Status|REPORTED|RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from sh_zam  ---
Thanks for the logs! I've fixed the bug, but it will be in Nightly only when
the dependencies are built (which may take till Monday :) ).

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-01-27 Thread Tyson Tan
https://bugs.kde.org/show_bug.cgi?id=463115

--- Comment #4 from Tyson Tan  ---
Created attachment 155716
  --> https://bugs.kde.org/attachment.cgi?id=155716=edit
Tablet log of Samsung Tab S8 with keyboard cover

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-01-27 Thread sh_zam
https://bugs.kde.org/show_bug.cgi?id=463115

--- Comment #3 from sh_zam  ---
(In reply to Tyson Tan from comment #2)
> I have tried to log the tablet events today. It seemed to be successful,
> judging from the prompts. However, I have no idea how to find the log files
> on Android.

In the log view docker, there is a save button and that works exactly like how
you'd save any other Krita file :)

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-01-26 Thread Tyson Tan
https://bugs.kde.org/show_bug.cgi?id=463115

--- Comment #2 from Tyson Tan  ---
I have tried to log the tablet events today. It seemed to be successful,
judging from the prompts. However, I have no idea how to find the log files on
Android.

There is a new finding: when the bug happened, I left mouse clicked on the
canvas, the cursor returned and it was functional. This felt similar to another
bug I reported earlier (after creating/opening a document, the canvas would
freeze until I draw something on it)

BTW, this bug has become less relevant to my Krita usage, as I figured out that
the most comfortable way to use Krita on an Android tablet -- to ditch the
keyboard and mouse completely, and to use the screen vertically, with no docker
shown.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2023-01-25 Thread sh_zam
https://bugs.kde.org/show_bug.cgi?id=463115

sh_zam  changed:

   What|Removed |Added

 CC||sh...@sdf.org

--- Comment #1 from sh_zam  ---
Hi Tyson!

If you have an External keyboard, can you please enable Tablet Event Logging
(Ctrl + Shift + T), enable logging in Log View docker and then attach the
output after performing the buggy action?

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 463115] [Android] Krita loses detection of mouse events on canvas after S-PEN is in range, and it won't come back

2022-12-16 Thread Tyson Tan
https://bugs.kde.org/show_bug.cgi?id=463115

Tyson Tan  changed:

   What|Removed |Added

 OS|Linux   |Android 13.x
   Platform|Other   |Android

-- 
You are receiving this mail because:
You are watching all bug changes.