Skip to content

Commit

Permalink
Added opacity for loader
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Jun 21, 2024
1 parent 20071fc commit 9caee44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/basic/PinchZoomView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export default class PinchZoomView extends AtomControl {
<div class="image-container">
<img
src={Bind.oneWay(() => this.getSource(this.source))}
style-opacity={Bind.oneWay(() => this.loading ? "0.3" : "1")}
event-load={() => {
this.loading = false;
this.updateZoom(this.zoom);
Expand Down

0 comments on commit 9caee44

Please sign in to comment.