Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrollbar can not be clicked by mouse. #21

Open
nayasis opened this issue Apr 29, 2019 · 5 comments
Open

scrollbar can not be clicked by mouse. #21

nayasis opened this issue Apr 29, 2019 · 5 comments

Comments

@nayasis
Copy link

nayasis commented Apr 29, 2019

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 ?)

@rahmanusta
Copy link
Collaborator

Can you share some steps to reproduce it ?

@nayasis
Copy link
Author

nayasis commented Apr 29, 2019

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.

@rahmanusta
Copy link
Collaborator

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

@nayasis
Copy link
Author

nayasis commented Apr 30, 2019

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

@cnanjo
Copy link

cnanjo commented Apr 24, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants