When zooming-out hits an edge, labels & image-updates get messed up
USE CASE: WHAT DO YOU WANT TO DO?
Partially option-scroll zoom out, then see labels on the edge & scroll image.
STEPS TO REPRODUCE AN ISSUE (OR TRIGGER A NEW FEATURE)
- Open large_6kx6k.txt
- Make a small uncentered selection (e.g. bottom-right)
- Click the zoom to selection button
- Option-scroll-down to a partial zoom-out until the selection moves out from under the cursor (be sure to stop scrolling before full zoom-out is reached and where the stopping point still draws blue labels, i.e. you are still in label port mode) 5a. Hover the cursor over the top-left-most corner OR 5b. Scroll up/down
CURRENT BEHAVIOR
4: The selection box, when scrolled out to a point where it shifts out from under the cursor, the image freezes and the selection box is the only thing that moves.
5a: the column labels do not reach the left-most edge and the row labels do not reach the top.
5b: The selection box scrolls, but the image is static
EXPECTED BEHAVIOR
5a: Hovering to the top-left corner, the red highlighted labels should be above and to the left of the cursor position and the labels should generally fill the label panes.
5b: Scrolling should scroll the image in tandem with the selection box.
DEVELOPERS ONLY SECTION
SUGGESTED CHANGE (Pseudocode optional)
The option-scroll zoom out, when it hits an edge appears to behave incorrectly and must be where the problem starts. This might be a buffered image issue, but also the labels are affected, so I'm not completely sure how many sections of code need work.
FILES AFFECTED (where the changes will be implemented) - developers only
InteractiveMatrixView.java possibly more, including the buffered image classes.
LEVEL OF EFFORT - developers only
medium
COMMENTS
Comments (14)
-
reporter -
reporter I attached a screen recording.
-
reporter - changed milestone to Zooming
-
- changed version to alpha04
-
reporter - marked as critical
-
reporter I have uncovered a clue that I think reveals what this issue really is... If you click and drag to make a selection and while dragging, the cursor leaves the edge of the matrix, and the mouse button is released while the cursor is not over the matrix, the zoom coordinates calculated are for hypothetical indexes off the edge of the matrix.
-
reporter Well apparently, that's only part of it. Option-scroll zooming out also causes the image to freeze.
-
reporter One thing at a time I guess...
-
reporter - changed status to resolved
Resolved in PR 57.
-
reporter Issue
#324was marked as a duplicate of this issue. -
reporter - changed status to closed
Merged to master
-
reporter - changed component to Zooming
-
reporter - removed milestone
Removing milestone: Zooming (automated comment)
-
reporter - changed version to beta2
- Log in to comment
Hey @TreeView3Dev, this appears to possibly involve a buffered image bug. Might also be a separate bug having to do with updates during option-scroll-zoom, but I'm not certain. The labels issue suggests there might be something other than buffered-image problems. Note, this problem seems to fix itself eventually. I think a full zoom-out fixes it. Horizontal scrolling may also fix it. Note that the image freezes during option-scroll zoom-out once the image hits an edge. I DO get the outside raster error.