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

Draggable items on jacket #6

Open
ofilippov opened this issue Apr 20, 2014 · 5 comments
Open

Draggable items on jacket #6

ofilippov opened this issue Apr 20, 2014 · 5 comments
Assignees
Milestone

Comments

@ofilippov
Copy link

If I try to drag an item on my custom jacket (with mousedown and mousemove event listeners on this item) I will drag whole mini-player on screen instead.
We need a way to prevent player dragging somehow. Some mark on inside-draggable items for example.

@din din added this to the 3.2 milestone Apr 20, 2014
@din din self-assigned this Apr 20, 2014
@din
Copy link
Owner

din commented Apr 20, 2014

You can implement your own dragging from scratch. You should use Jacket options to completely disable dragging handled by Simplify and implement your own dragging routine from scratch. There are tons of examples of doing that, so, I am pretty sure, it's not a problem.

@ofilippov
Copy link
Author

I see what you mean - will try to do it this way, thanks!

@din
Copy link
Owner

din commented Apr 20, 2014

I'm not quite sure about making your jacket bounds equal screen bounds. In that case user wouldn't be able to drag&drop screen icons (jackets appear on top of desktop icons). But we can think about adding an option to stick jacket below every other element on screen, so you can maximise it on screen and implement your own drag&drop operations flawlessly.

@ofilippov
Copy link
Author

Yeah, I removed that comment (about jacket with screen-size). It would be better to use small jacket with mouse listeners on it and call Simplify.setJacketFrame to change the position on screen. Looks like it should work.

@ofilippov
Copy link
Author

Nope, doesn't work because of this: #8

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

No branches or pull requests

2 participants