Skip to content

Incorrect Image Resize Dragging Logic and Action #2863

@git-lakshy

Description

@git-lakshy

Image resize options for corners are not functioning correctly, incorrect code logic is being used for handling image boundary drag of all points in format-geometry-edit.scm

Current code uses

        ((ne) (uniform-scale (/ (+ ow sx) ow) (/ nh oh))) ; nh = oh - sy
        ((nw) (uniform-scale (/ nw ow) (/ nh oh)))        ; nh = oh - sy
        ((n)  (when (> nh 0.1) (tree-set! t 2 (cm->str nh)) (refresh-window))) ; nh = oh - sy

This causes ne and nw to shrink the image vertically instead of expanding it.

I have a fix ready for this using correct code logic for ne and nw.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions