Bug 497186

Summary: Brush Engine does not leave a mark when you move it less than half a pixel after tapping or pressing down.
Product: [Applications] krita Reporter: Edict <olvarx>
Component: Brush enginesAssignee: Edict <olvarx>
Status: RESOLVED DUPLICATE    
Severity: normal CC: halla, info, scottpetrovic, tomtomtomreportingin
Priority: NOR    
Version First Reported In: 5.2.7   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Showing the bug. No mark on hold down while moving less than half a pixel.

Description Edict 2024-12-08 04:12:05 UTC
SUMMARY
Brush engine only starts drawing after you move the tip. It is a problem when marking dots and stripling, as it is very inconsistent when it activates.
I didn't have this problem to a noticeable degree when I was working with a 1 pixel size brush tip. Brush left marks almost always in that case.

STEPS TO REPRODUCE
1. Select brush b) Basic-1 default size
2. Tap the canvas with minimal horizontal and vertical movement on the canvas. 
 

OBSERVED RESULT
The taps that had no movement leave no marks on the canvas.

EXPECTED RESULT
Every tap leaves a mark behind, regardless of brush movement.

SOFTWARE/OS VERSIONS
Windows: 10 
Qt Version: 5.2.7
Comment 1 Scott Petrovic 2025-04-02 16:29:46 UTC
I am testing this on Windows and the "Basic-1 default size" brush seems to make a dab fine with no movement. Not sure if this has been fixed or not.

This quick dabbing only works for about 1/2 of the brush engines, so some of them you have to use your mouse more for them to lay down paint/color.
Comment 2 Edict 2025-04-02 19:41:51 UTC
I am using wacom 16 cintiq DTK-1660

The bug is present in 5.2.9 and the 5.3.0-prealpha git c65f656
Windows 11

Using "Basic-1 default size" brush with stylus.
It does not appear when I click with mouse without moving it.
It appears when I tap with my pen, it's easier to repeat when I have canvas zoomed in. Pushing down on the pen with full force does not leave a mark if I do not move the pen.
Comment 3 Edict 2025-04-02 19:50:24 UTC
Interesting behavior.
When I press the mouse button down it does not leave a mark. Because if I hold down the mouse and do not move it it behaves like the pen. The moment I start moving the mouse the marks appear.

That is the same behavior for pen. But on release of the button the mouse leaves a mark.
I believe the bug is from the code saying On release leave a mark, and pen does not have the on release code. Pen only acts based on pressing down.
So I suspect the fix might be to have mark be act on press instead of release.
Comment 4 Edict 2025-04-02 20:04:29 UTC
Additional info.
Bug of no marks being drawn also happens with mouse when:
> Press down button 
> Move the cursor less than 0.5 of a pixel
> Release button
Comment 5 Bug Janitor Service 2025-04-03 03:46:56 UTC
๐Ÿ›๐Ÿงน Thanks for your comment!

Automatically switching the status to REPORTED so the team can perform further triage.

In the future you may also do this yourself when providing needed information.
Comment 6 Wolfgang Baer 2025-04-08 19:01:49 UTC
Works here as expected:
Krita 5.2.9
Windows 10
Tested with notebook trackpad (mouse equivalent) and huion inspiroy 580x pen tablet.
Pen tablet and Krita set to Windows Ink.

Dab appears correctly even without movement of pen or mouse.
Comment 7 Halla Rempt 2025-04-10 08:17:37 UTC
Then let's close for now.
Comment 8 Edict 2025-11-09 09:45:43 UTC
Created attachment 186639 [details]
Showing the bug. No mark on hold down while moving less than half a pixel.

In video:
If mouse is moved, the travel prevents the 'release' from triggering.
If mouse is not moved, it leaves a mark on 'release'.

Not in video:
If you move more than half a pixel, a mark is made.

Same with wacom stylus. If there is no movement at all on a tap. A mark is made.
If there is even a tiniest movement that is not bigger than half a pixel no marks are made.
If there is movement that is longer than half a pixel a mark is made.

It does not happen when using a 1 pixel brush with sharpness enabled.

Imo the mark should be made on press down, rather than on detecting a vector of movement or on release.
This is a problem when artists try stippling techniques. Or at the very least the movement not overwrite the release command during the 0.5 pixel distance where it makes no marks.
Comment 9 tomtomtomreportingin 2025-11-10 04:02:08 UTC

*** This bug has been marked as a duplicate of bug 460080 ***