TerminalFX icon indicating copy to clipboard operation
TerminalFX copied to clipboard

scrollbar can not be clicked by mouse.

Open nayasis opened this issue 5 years ago • 5 comments

scollbar in Scene can not be clicked nor dragged up and down when text on screen is overflowed.

How can I make scrollbar being controlled by mouse ?

(Is scrollbar is html component in WebView so there is no way to control ?)

nayasis avatar Apr 29 '19 08:04 nayasis

Can you share some steps to reproduce it ?

rahmanusta avatar Apr 29 '19 08:04 rahmanusta

Thanks for replying :)

Sample code is here.

import com.kodedu.terminalfx.TerminalBuilder;
import com.kodedu.terminalfx.TerminalTab;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.TabPane;
import javafx.stage.Stage;

public class TfxTest extends Application {

    @Override
    public void start( Stage stage ) throws Exception {

        stage.setTitle( "TerminalFx test" );

        TerminalBuilder builder = new TerminalBuilder();
        TerminalTab terminalTab = builder.newTerminal();

        TabPane tabPane = new TabPane();
        tabPane.getTabs().add(terminalTab);

        stage.setScene( new Scene( tabPane, 900, 800 ) );
        stage.show();

        terminalTab.onTerminalFxReady( () -> {
            terminalTab.getTerminal().command( "cmd /c c: && cd \"c:\\Windows\" && dir\r" );
        });
    }

}

It runs like below and scrolls well by mouse wheel action only. but not clicked by mouse at all. ( My os is windos10 and Javafx is 12. I'll test it on 11 later and let you know it woks well on jfx 11.)

image

I suspect hterm library. But newest 1.84 packed as single, it doesn't work on your hterm.html.

nayasis avatar Apr 29 '19 09:04 nayasis

As far as I remember it was never clickable, and controllable by mouse.

rahmanusta avatar Apr 29 '19 11:04 rahmanusta

Thank you. It's sad but very helpful. 👍

nayasis avatar Apr 30 '19 00:04 nayasis

I am running into the same issue. It would be great to have a fix to support the ability to hold the scroll handle and move up and down when the history gets large. Thank you very much for this really helpful library!

cnanjo avatar Apr 24 '20 18:04 cnanjo