<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>378484</bug_id>
          
          <creation_ts>2017-04-06 02:57:16 +0000</creation_ts>
          <short_desc>Popup Palette usability issues of unwanted right-click selecting &amp; holding-releasing right-click actions</short_desc>
          <delta_ts>2018-05-02 11:59:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krita</product>
          <component>Usability</component>
          <version>3.1.3-alpha</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tyson Tan">tysontanx</reporter>
          <assigned_to name="Krita Bugs">krita-bugs-null</assigned_to>
          <cc>alvin</cc>
    
    <cc>halla</cc>
          
          <cf_commitlink>https://commits.kde.org/krita/93e1e39386eae6b23b390ab7c3034c83f864a7ec</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1670159</commentid>
    <comment_count>0</comment_count>
    <who name="Tyson Tan">tysontanx</who>
    <bug_when>2017-04-06 02:57:16 +0000</bug_when>
    <thetext>In Krita 3.1.x and older, Popup palette has a few usability issues that cause unwanted actions:

1) Right-click can pick color and select brush presets. 

As Krita 3.1.x&apos;s current design, when the cursor is above the popup palette, another right click selects something on the palette before closing it down. This is bad because: Right click is associated with BRINGING UP the popup palette -- we expect another right-click to be associated with CLOSING DOWN the palette. We normally don&apos;t pay attention to the cursor position when we close the palette, so it is very easy to select unwanted colors and brush presets accidentally, breaking the flow.

2) Holding Right-click and release automatically selects brush preset and close popup palette.

Holding right click over canvas can bring up popup palette. Keep holding it and move the cursor over a brush preset icon and release, the preset will be selected and the palette close down immediately. This aggravates the problem of (1). What&apos;s more, releasing the right button over the palette&apos;s color picker doesn&apos;t do anything, an inconsistency of UI interaction. 

Allowing holding-key command is usually a bad idea because mouse and stylus does not work the same:

A) A mouse runs on a solid surface, which means a CLICK can be done in a clean and reliable way.

B) A stylus is supported by soft flesh. When the force over a barrel button is lifted, the bouncing back flesh keeps the button activated for a longer period. We cannot predict when the clicking mechanism is bring released. In this case, many (EXPECTED) CLICKS are recognized as HOLDING by the system. That&apos;s why it&apos;s very difficult to use a 1-button in-line remote control of a headset to perform NEXT (2-clicks) and BACK (3-clicks).

Therefore, we should always consider that on a stylus, CLICKS and HOLDING cannot be executed in a reliable way and they always mix with each other. 

The issues above cause too many unwanted changes of color and brush and confusion in Krita. Therefore I suggest:

A) Do not allow right click to select popup palette items.

B) Do not auto-select-and-close when a holding-right-click is released, keep the popup palette up so we can have time to look, think, select.

C) Treat all holding right-clicks as 1 normal right-click. Do not assign different functions to right-click and holding-right-click.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1713497</commentid>
    <comment_count>1</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2017-11-26 13:04:02 +0000</bug_when>
    <thetext>WISHGROUP: Small Usability Fixes</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1738042</commentid>
    <comment_count>2</comment_count>
    <who name="Alvin Wong">alvin</who>
    <bug_when>2018-03-14 15:20:17 +0000</bug_when>
    <thetext>I think point 2 would be handled in Bug 391696. I&apos;ll leave point 1 for this bug report.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746520</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2018-04-18 14:27:42 +0000</bug_when>
    <thetext>Git commit c7e6c0184f951b4b4165a4bbb7e99107a9e36cb0 by Dmitry Kazakov.
Committed on 18/04/2018 at 14:27.
Pushed by dkazakov into branch &apos;master&apos;.

Disable right-clicking on popup palette

With this patch it is not possible to select a palette item
using the right-click of the stylus. All the distinct actions
should be confirmed with the left button. Right-click on any part
of the canvas just closes the entire palette.
Related: bug 391696

M  +24   -1    libs/ui/kis_popup_palette.cpp
M  +5    -0    libs/ui/kis_popup_palette.h

https://commits.kde.org/krita/c7e6c0184f951b4b4165a4bbb7e99107a9e36cb0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746535</commentid>
    <comment_count>4</comment_count>
    <who name="Tyson Tan">tysontanx</who>
    <bug_when>2018-04-18 14:51:30 +0000</bug_when>
    <thetext>Thank you Dmitry! This is a life saver!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1749563</commentid>
    <comment_count>5</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2018-05-02 11:59:38 +0000</bug_when>
    <thetext>Git commit 93e1e39386eae6b23b390ab7c3034c83f864a7ec by Boudewijn Rempt, on behalf of Dmitry Kazakov.
Committed on 02/05/2018 at 11:54.
Pushed by rempt into branch &apos;krita/4.0&apos;.

Disable right-clicking on popup palette

With this patch it is not possible to select a palette item
using the right-click of the stylus. All the distinct actions
should be confirmed with the left button. Right-click on any part
of the canvas just closes the entire palette.
Related: bug 391696
(cherry picked from commit 20c9efffb70cf2757595fee8d7c56a5fe59d5664)

M  +24   -1    libs/ui/kis_popup_palette.cpp
M  +5    -0    libs/ui/kis_popup_palette.h

https://commits.kde.org/krita/93e1e39386eae6b23b390ab7c3034c83f864a7ec</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>