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

Dragging of window titlebar #79

Open
sebhaase opened this issue Mar 2, 2020 · 5 comments
Open

Dragging of window titlebar #79

sebhaase opened this issue Mar 2, 2020 · 5 comments

Comments

@sebhaase
Copy link

sebhaase commented Mar 2, 2020

This is a followup to issue #78. As you suggested, resizing the window - by dragging the bottom right corner of the window - is working. Is moving the window by dragging the title-bar supposed to work?
It behaves like an HTML <img> where dragging=false was forgotten to set.
Apparently the code of the title bar is <div class="titleBar" draggable="true"> - but you cannot drag the window, or am I missing something...?

@alexp-sssup
Copy link
Member

Dragging the windows is supported, but currently works best in Chrome. Firefox is known to be working but it's a bit glitchy. What browser are you using?

@sebhaase
Copy link
Author

sebhaase commented Mar 2, 2020

I tried Chrome on Windows and Chrome on OSX. Neither is working for me.

@alexp-sssup
Copy link
Member

Can you share a test case with us, including the HTML code? Also try the Swing example on our fiddle: https://javafiddle.leaningtech.com/

@sebhaase
Copy link
Author

sebhaase commented Mar 3, 2020

Apparently it does work if I open the html file directly - I was using it inside <embed>. It even works if I change that to a normal <iframe>.
Sorry for the noise...
Now I would like to ask if I can simulate the dragging from "outside" Javascript. (and the resizing) - which kind of events would that be: mousedown, mousemove etc. ?
(should I open a new issue?)

@alexp-sssup
Copy link
Member

The system currently uses the 'drag' family of events over the titleBar element. Although you can try to simulate the right events to get the windows behaviour you want, you should be aware that these are consider an internal interface and may change at any time. I apologize for these limitations, but as usual, we are a small company so we need to carefully prioritize the features we implement.

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

2 participants