TerminalFX
TerminalFX copied to clipboard
scrollbar can not be clicked by mouse.
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 ?)
Can you share some steps to reproduce it ?
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.)
I suspect hterm library. But newest 1.84 packed as single, it doesn't work on your hterm.html.
As far as I remember it was never clickable, and controllable by mouse.
Thank you. It's sad but very helpful. 👍
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!