[JAL-3226] problem that JavaScript (or Java) may consolidate multiple
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Tue, 23 Apr 2019 03:48:49 +0000 (22:48 -0500)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Tue, 23 Apr 2019 03:48:49 +0000 (22:48 -0500)
commit42984135d36f8bb943fc4c20879359d1508bac0f
tree8daf1a9ea18b29b7b487c33990fcbe9e643579db
parent2906ed2402d0c662ab0bf857dbea103cfb344843
[JAL-3226] problem that JavaScript (or Java) may consolidate multiple
repaint() requests in unpredictable ways. In this case, the issue was
that in response to a CTRL-C/CTRL-V paste request, in Java a fast
repaint request preceded two full requests, thus resulting
in a full request for paint. In constrast, in JavaScript, the three
requests were bundled together into one, so the fastPaint flag was
still present for the second and third request.

This resulted in incomplete painting.

The solution was to set seqCanvas.fastPaint and idCanvas.fastPaint false
in PaintRefresher when the target to be painted is one of those two
components.

BH 2019.04.22
src/jalview/gui/IdCanvas.java
src/jalview/gui/PaintRefresher.java
src/jalview/gui/SeqCanvas.java
src/jalview/viewmodel/AlignmentViewport.java