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

Link effect not working on drag drop #218

Open
regorxxx opened this issue Jun 13, 2023 · 0 comments
Open

Link effect not working on drag drop #218

regorxxx opened this issue Jun 13, 2023 · 0 comments

Comments

@regorxxx
Copy link

window.DefineScript('bug', {features: {drag_n_drop: true, grab_focus: true}});

function on_drag_drop(action, x, y, mask) {
	console.log('enter', action);
}

function on_drag_over(action, x, y, mask) {
    if ((mask & 32) === 32) {action.Effect = dropEffect.link;}
}

function on_drag_leave() {
	console.log('leave');
}


const dropEffect = {
	none:   0,
	copy:   1,
	move:   2,
	link:   4,
	scroll: 0x80000000
};

Console will always report on_drag_leave firing when pressing alt, instead of on_drag_drop. It works properly for all other effects. The drag n drop sample doesn't work too.
Win 10.

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

1 participant