mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-02 04:15:52 -05:00
console scroll easing
This commit is contained in:
@@ -171,6 +171,13 @@ describe('useTerminal', () => {
|
||||
expect(Object.keys(theme)).toHaveLength(22);
|
||||
});
|
||||
|
||||
it('scrolls without easing, so new output cannot drag a scrolled-up view along', async () => {
|
||||
render(<Harness />);
|
||||
await waitFor(() => expect(terminals).toHaveLength(1));
|
||||
|
||||
expect(terminals[0].options.smoothScrollDuration).toBe(0);
|
||||
});
|
||||
|
||||
it('keeps the on-screen keyboard closed when the read-only terminal takes focus', async () => {
|
||||
const { container } = render(<Harness />);
|
||||
|
||||
|
||||
@@ -76,6 +76,9 @@ const terminalProps: ITerminalOptions = {
|
||||
cursorBlink: false,
|
||||
allowTransparency: true,
|
||||
rows: 30,
|
||||
// Ghostty eases wheel scrolls toward a target it doesn't move when output arrives, so on a busy
|
||||
// console each new line dragged the view forward and swallowed most of the scroll.
|
||||
smoothScrollDuration: 0,
|
||||
};
|
||||
|
||||
const countLineFeeds = (data: string | Uint8Array) =>
|
||||
|
||||
Reference in New Issue
Block a user