When zooming-out hits an edge, labels & image-updates get messed up

Issue #290 closed
Robert Leach created an issue

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)

  1. Open large_6kx6k.txt
  2. Make a small uncentered selection (e.g. bottom-right)
  3. Click the zoom to selection button
  4. 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

tv3_option-double-click-zoom-out-label-bug2.png

Comments (14)

  1. Robert Leach reporter

    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.

  2. Robert Leach 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.

  3. Robert Leach reporter

    Well apparently, that's only part of it. Option-scroll zooming out also causes the image to freeze.

  4. Log in to comment