Menu

#769 Tooltips are accidentally hidden by the mouse cursor

v1.1.x
fixed
v1.1.4
Bug Fix
2023-03-07
2022-12-20
Erik Hänel
No

If the mouse cursor is at the position, where the tooltip appears, then it is automatically hidden again. This is probably due to the fact that the focus of the window may be lost. Can probably be resolved by checking the mouse position first. However, it has to be ensured that tooltips are hidden, if the user switches windows.

Analysis:

The culprit for this behaviour seems to be the window leave event handler, which fires, if the mouse enters the tooltip.

Implementation:

  • Implementation: Implemented as proposed by the analysis.
  • Revision: [r1291]
  • Implementation test: Tooltips stayed active, if the mouse entered their area and hide themselves, if either the user clicks on another position of the editor or actually switches the keyboard focus to another window.

Documentation:

  • [x] ChangesLog updated
  • [x] Code changes commented
  • Documentation articles:
    • [ ] corresponding documentation articles updated
    • [ ] new documentation articles created
    • [x] not needed
  • Language files:
    • [ ] corresponding language files updated
    • [x] not needed

Tests:

Tested manually. No deviation detected.

Related

Commit: [r1291]

Discussion

  • Erik Hänel

    Erik Hänel - 2022-12-20
    • labels: --> editor, gui
    • status: open --> accepted
     
  • Erik Hänel

    Erik Hänel - 2022-12-20
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,23 @@
     If the mouse cursor is at the position, where the tooltip appears, then it is automatically hidden again. This is probably due to the fact that the focus of the window may be lost. Can probably be resolved by checking the mouse position first. However, it has to be ensured that tooltips are hidden, if the user switches windows.
    +
    +###Analysis:
    +(*Describe, what's the issue and which changes have to be made*)
    +
    +###Implementation:
    +* Implementation: (*Describe, what you've changed*) 
    +* Revision: [rXXX]
    +* Implementation test: (*Describe the type of test, which you performed, and if it was successful*)
    +
    +###Documentation:
    +* [ ] ChangesLog updated
    +* [ ] Code changes commented
    +* **Documentation articles:**
    
    +    * [ ] corresponding documentation articles updated
    +    * [ ] new documentation articles created
    +    * [ ] not needed
    +* **Language files:**
    +    * [ ] corresponding language files updated
    +    * [ ] not needed
    +
    +###Tests:
    +(*Describe, which tests you performed and their outcome*)
    
    • status: accepted --> analyzing
     
  • Erik Hänel

    Erik Hänel - 2022-12-23
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,7 +1,7 @@
     If the mouse cursor is at the position, where the tooltip appears, then it is automatically hidden again. This is probably due to the fact that the focus of the window may be lost. Can probably be resolved by checking the mouse position first. However, it has to be ensured that tooltips are hidden, if the user switches windows.
    
     ###Analysis:
    -(*Describe, what's the issue and which changes have to be made*)
    +The culprit for this behaviour seems to be the window leave event handler, which fires, if the mouse enters the tooltip.
    
     ###Implementation:
    
     * Implementation: (*Describe, what you've changed*) 
    
    • status: analyzing --> implementing
     
  • Erik Hänel

    Erik Hänel - 2022-12-23
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,20 +4,20 @@
     The culprit for this behaviour seems to be the window leave event handler, which fires, if the mouse enters the tooltip.
    
     ###Implementation:
    -* Implementation: (*Describe, what you've changed*) 
    -* Revision: [rXXX]
    -* Implementation test: (*Describe the type of test, which you performed, and if it was successful*)
    +* Implementation: Implemented as proposed by the analysis.
    +* Revision: [r1291]
    +* Implementation test: Tooltips stayed active, if the mouse entered their area and hide themselves, if either the user clicks on another position of the editor or actually switches the keyboard focus to another window.
    
     ###Documentation:
    -* [ ] ChangesLog updated
    -* [ ] Code changes commented
    +* [x] ChangesLog updated
    +* [x] Code changes commented
    
     * **Documentation articles:**
         * [ ] corresponding documentation articles updated
         * [ ] new documentation articles created
    -    * [ ] not needed
    +    * [x] not needed
     * **Language files:**
         * [ ] corresponding language files updated
    -    * [ ] not needed
    +    * [x] not needed
    
     ###Tests:
     (*Describe, which tests you performed and their outcome*)
    
    • status: implementing --> testing
     

    Related

    Commit: [r1291]

  • Erik Hänel

    Erik Hänel - 2023-03-07
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -20,4 +20,4 @@
    
         * [x] not needed
    
     ###Tests:
    -(*Describe, which tests you performed and their outcome*)
    +Tested manually. No deviation detected.
    
    • status: testing --> fixed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB