Skip to content

Commit

Permalink
fix: add backface-visibility: hidden to cropper image to avoid ghos…
Browse files Browse the repository at this point in the history
…t lines when moving

ref #982
  • Loading branch information
fengyuanchen committed Nov 20, 2022
1 parent 3176f04 commit 97d2c2f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## next

- Add `backface-visibility: hidden` to cropper image to avoid ghost lines when moving (#982).
- Remove useless `cropper-hide` class from cropper image.
- Check whether the parent node exists or not before removing the cropper container.

Expand Down
1 change: 1 addition & 0 deletions src/css/cropper.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
user-select: none;

& img {
backface-visibility: hidden;
display: block;
height: 100%;
image-orientation: 0deg;
Expand Down
1 change: 1 addition & 0 deletions src/css/cropper.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ $cropper-image-path: '../images' !default;
user-select: none;

img {
backface-visibility: hidden;
display: block;
height: 100%;
image-orientation: 0deg;
Expand Down

0 comments on commit 97d2c2f

Please sign in to comment.