-
-
Notifications
You must be signed in to change notification settings - Fork 7k
[regression] Marqueed selection gets some rows duplicated when moved left and right over left canvas edge with Ctrl still pressed #2891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@Gasparoken could you please try reproducing this on a Mac? I can't seem to be able to do that on Windows. I've dragged this selected portion (as described in the report) around a lot and ... nothing. |
Hi @iamOgunyinka. Yes, I was able to reproduce it in MacOS and Windows. Only in the beta version. |
Gasparoken
added a commit
to aseprite/laf
that referenced
this issue
Jul 13, 2022
This 'floor' function is useful to adjust x, y float coordinates to the _left most near integer_ for x, and _top most near integer_ for y (instead of rounding towards 0). This function was included to solve issue aseprite/aseprite#2891 Example of use: ``` gfx::RectF boundsF(-0.25, -0.75, 1, 2); gfx::Rect bounds = boundsF.floor(); bounds = (-1, -1, 1, 2) ``` When 'floor' is not used: ``` gfx::RectF boundsF(-0.25, -0.75, 1, 2); gfx::Rect bounds = boundsF; bounds = (0, 0, 1, 2) ```
Gasparoken
added a commit
that referenced
this issue
Jul 13, 2022
…right over left canvas edge with Ctrl still pressed #2891 Prior to this fix, moving a marquee selection while holding down the Ctrl key outside the left/top area of the canvas results in a 1px distortion of the marquee image. This distortion is due to a false transformation when it is required to get the corner bounds, due to rounding the float coordinates towards 0 instead of the nearest left/top integer. The discrepancy occurs within the `getDraggedImageCopy`, `redrawExtraImage`, `drawImage` and `drawMask` functions.
dacap
pushed a commit
to aseprite/laf
that referenced
this issue
Jul 13, 2022
This 'floor' function is useful to adjust x/y floating-point coordinates to the left most/top most near integer respectively (instead of rounding towards zero). Included to solve aseprite/aseprite#2891
dacap
pushed a commit
to dacap/aseprite
that referenced
this issue
Jul 14, 2022
…right over left canvas edge with Ctrl still pressed aseprite#2891 Prior to this fix, moving a marquee selection while holding down the Ctrl key outside the left/top area of the canvas results in a 1px distortion of the marquee image. This distortion is due to a false transformation when it is required to get the corner bounds, due to rounding the float coordinates towards 0 instead of the nearest left/top integer. The discrepancy occurs within the `getDraggedImageCopy`, `redrawExtraImage`, `drawImage` and `drawMask` functions.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce:
Screenshots
Selection to reproduce an issue:
Artifacts during/after movement:
Additional info
Aseprite and System version
The text was updated successfully, but these errors were encountered: