Skip to content

Commit

Permalink
bruh
Browse files Browse the repository at this point in the history
  • Loading branch information
RealRTTV committed Mar 24, 2024
1 parent c9aa829 commit e91cfcb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ impl Tab {
}

pub fn set_horizontal_scroll(&mut self, scroll: f32, held: Option<&NbtElement>) {
#[cfg(target_os = "macos")]
const SCROLL_MULTIPLIER: f32 = 4.0;
#[cfg(not(target_os = "macos"))]
const SCROLL_MULTIPLIER: f32 = 48.0;

if scroll.is_sign_negative() && self.horizontal_scroll < (scroll * -SCROLL_MULTIPLIER) as usize {
Expand Down

0 comments on commit e91cfcb

Please sign in to comment.