Skip to content

#9 Feat: Add content padding to canvas scaling for better touch handl…#10

Open
ThomasKiljanczykDev wants to merge 2 commits into
Tanish-Ranjan:developfrom
ThomasKiljanczykDev:feature/9-improved-drag-handle-responsivness
Open

#9 Feat: Add content padding to canvas scaling for better touch handl…#10
ThomasKiljanczykDev wants to merge 2 commits into
Tanish-Ranjan:developfrom
ThomasKiljanczykDev:feature/9-improved-drag-handle-responsivness

Conversation

@ThomasKiljanczykDev
Copy link
Copy Markdown

@ThomasKiljanczykDev ThomasKiljanczykDev commented Dec 29, 2025

…e accessibility

  • Introduced contentPadding based on touchPadding to ensure crop handles at the edges remain within the interactive canvas bounds.
  • Updated scaledSize calculation and offset positioning to account for the new padding, centering the bitmap within the available padded space.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as
    expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also note any relevant details
for your test configuration.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

…r touch handle accessibility

- Introduced `contentPadding` based on `touchPadding` to ensure crop handles at the edges remain within the interactive canvas bounds.
- Updated `scaledSize` calculation and offset positioning to account for the new padding, centering the bitmap within the available padded space.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant