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

fix(files): Reset drop notice on firefox #47465

Merged
merged 2 commits into from
Aug 26, 2024
Merged

fix(files): Reset drop notice on firefox #47465

merged 2 commits into from
Aug 26, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Aug 24, 2024

Summary

On Firefox there is an old bug where when you move a dragged file outside the window the dragleave event is never emitted. So we just use a timeout to reset the drag over state.

Also a small change: Use the ID of the main container instead of relying on tag name and class. (The ID is guaranteed as other APIs rely on it, while the class is just used internally).

Screen recording

This is how the bug looks (before this PR):

Bildschirmaufnahme_20240824_120143.webm

Checklist

@susnux susnux modified the milestones: Nextcloud 30, Nextcloud 31 Aug 24, 2024
@susnux susnux marked this pull request as ready for review August 24, 2024 10:04
@susnux susnux requested a review from skjnldsv as a code owner August 24, 2024 10:04
@susnux
Copy link
Contributor Author

susnux commented Aug 24, 2024

Firefox bugs that cause this:

  1. https://bugzilla.mozilla.org/show_bug.cgi?id=1427644
  2. https://bugzilla.mozilla.org/show_bug.cgi?id=656164

And yes those are open since Firefox 4(!)

@susnux susnux added the design Design, UI, UX, etc. label Aug 24, 2024
@susnux
Copy link
Contributor Author

susnux commented Aug 24, 2024

/backport to stable30

@susnux
Copy link
Contributor Author

susnux commented Aug 24, 2024

/backport to stable29

@susnux
Copy link
Contributor Author

susnux commented Aug 26, 2024

/compile

@susnux
Copy link
Contributor Author

susnux commented Aug 26, 2024

BTW not sure if this has side effects, but to prevent them if they exist I do not like
delete this.$route.query.XY but prefer creating a copy first so we do not trigger side effects until the $router.push.

@susnux
Copy link
Contributor Author

susnux commented Aug 26, 2024

/compile amend/

susnux and others added 2 commits August 26, 2024 20:31
On firefox there is an old bug where when you move a dragged file outside
the window the `dragleave` event is never emitted.
So we just use a timeout to reset the drag over state.

Also a small change: Use the ID of the main container instead of relying on tag name and class.
(The ID is guranteed as other APIs rely on it, while the class is just used internally).

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@susnux susnux enabled auto-merge August 26, 2024 18:41
@susnux susnux merged commit 2665151 into master Aug 26, 2024
113 checks passed
@susnux susnux deleted the fix/files-drop-notice branch August 26, 2024 19:00
@skjnldsv
Copy link
Member

/backport to stable28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug design Design, UI, UX, etc. feature: files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants