Menu

#134 Remove flickering in the console

v1.1.x
fixed
None
v1.1.0
Bug Fix
2017-02-15
2017-01-29
Erik Hänel
No

The console flickers while using backspace or scrolling although nothing was done.

Analysis:
The flickering results from the console being refreshed without any action, which has been processed. If the relevant actions (backspace and scroll) would return a boolean indicating the success of the action (meaning, if the action could be processed or not), then a refresh would only be needed, if this boolean returns to true.

Implementation:
The fix was implemented as proposed by the analysis. The flickering could be removed for a scroll action, while it is still present, if the backspace is used (and there's actually something, which can be deleted by a backspace). It won't flicker anymore, if there cursor is already at the beginning of the line.

Documentation:
Not needed - bug fix.

Tests:
Backspace and scrolling don't result in flickering any more. The other detected cases are done with #157.

Discussion

  • Erik Hänel

    Erik Hänel - 2017-01-29
    • status: open --> accepted
     
  • Erik Hänel

    Erik Hänel - 2017-01-29
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,9 @@
     The console flickers while using backspace or scrolling although nothing was done.
    +
    +**Analysis:**
    +
    +**Implementation:**
    +
    +**Documentation:**
    +
    +**Tests:**
    
    • status: accepted --> analyzing
     
  • Erik Hänel

    Erik Hänel - 2017-01-31
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,6 +1,7 @@
     The console flickers while using backspace or scrolling although nothing was done.
    
     **Analysis:**
    +The flickering results from the console being refreshed without any action, which has been processed. If the relevant actions (backspace and scroll) would return a boolean indicating the success of the action (meaning, if the action could be processed or not), then a refresh would only be needed, if this boolean returns to true.
    
     **Implementation:**
    
     
  • Erik Hänel

    Erik Hänel - 2017-01-31
    • status: analyzing --> implementing
     
  • Erik Hänel

    Erik Hänel - 2017-02-01
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,7 +4,9 @@
     The flickering results from the console being refreshed without any action, which has been processed. If the relevant actions (backspace and scroll) would return a boolean indicating the success of the action (meaning, if the action could be processed or not), then a refresh would only be needed, if this boolean returns to true.
    
     **Implementation:**
    +The fix was implemented as proposed by the analysis. The flickering could be removed for a scroll action, while it is still present, if the backspace is used (and there's actually something, which can be deleted by a backspace). It won't flicker anymore, if there cursor is already at the beginning of the line.
    
     **Documentation:**
    +Not needed - bug fix.
    
     **Tests:**
    
    • status: implementing --> testing
     
  • Erik Hänel

    Erik Hänel - 2017-02-15
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -10,3 +10,4 @@
     Not needed - bug fix.
    
     **Tests:**
    +Backspace and scrolling don't result in flickering any more. The other detected cases are done with #157.
    
     
  • Erik Hänel

    Erik Hänel - 2017-02-15
    • status: testing --> fixed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB