Skip to content

Commit

Permalink
fix: scroll clamping (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
luoxiaozero authored Jun 26, 2024
1 parent 096f1b2 commit 5af711f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/blitz/src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ where
.to_f64_px();
self.scroll_offset = self
.scroll_offset
.min(0.0)
.max(-(content_height - viewport_height));
.max(-(content_height - viewport_height))
.min(0.0);
}

pub fn click(&mut self, button: &str) {
Expand Down

0 comments on commit 5af711f

Please sign in to comment.