Skip to content

Strange behavior when scrolling mouse to view file preview content in rio terminal #1150

@cavivie

Description

@cavivie

What system are you running Yazi on?

macOS

What terminal are you running Yazi in?

Yazi 0.2.5 (Homebrew 2024-04-23) / rioterm 0.1.0

Did you try the latest code to see if this problem got fixed?

Tried, but the problem still

yazi --debug output

Yazi
    Version: 0.2.5 (Homebrew 2024-04-23)
    OS: macos-aarch64 (unix)
    Debug: false

Emulator
    Emulator.via_env: ("rio", "rio")
    Emulator.via_csi: Ok(Unknown([]))
    Emulator.detect: Iterm2

Adaptor
    Adaptor.matches: Iterm2

Desktop
    XDG_SESSION_TYPE: None
    WAYLAND_DISPLAY: None
    DISPLAY: None

SSH
    shared.in_ssh_connection: false

WSL
    /proc/sys/fs/binfmt_misc/WSLInterop: false

Variables
    SHELL: Some("/bin/zsh")
    EDITOR: Some("nvim")
    ZELLIJ_SESSION_NAME: None
    YAZI_FILE_ONE: None
    YAZI_CONFIG_HOME: None

file(1)
    Version: Ok(Output { status: ExitStatus(unix_wait_status(0)), stdout: "file-5.41\nmagic file from /usr/share/file/magic\n", stderr: "" })

Text Opener
    default: Some(Opener { run: "${EDITOR:=vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true })
    block: Some(Opener { run: "${EDITOR:=vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true })

tmux
    TMUX: false

Ueberzug++
    Version: Err(Os { code: 2, kind: NotFound, message: "No such file or directory" })


--------------------------------------------------
When reporting a bug, please also upload the `yazi.log` log file - only upload the most recent content by time.
You can find it in the "/Users/cavivie/.local/state/yazi" directory.

Describe the bug

Screen.Recording.2024-06-12.at.16.19.33.mov

This was recorded in Rio Terminal.

Expected Behavior

Screen.Recording.2024-06-12.at.16.22.21.mov

This was recorded in iTerm2 Terminal.

To Reproduce

In rio terminal, the mouse scroll cannot be fixed when viewing the file preview content. It always scrolls the parent directory list where the file is located, rather than the file content itself. However, the behavior in iTerm2 seems to be correct. I didn't find any issues related to this in rio issue.

Configuration

No response

Anything else?

I am so sorry to create this issue If it is a known yazi or rio issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions