server icon indicating copy to clipboard operation
server copied to clipboard

[Bug]: NC 28.0.2 Context menu in "files" app does not work if scroll position is not 0

Open arnowelzel opened this issue 1 year ago • 5 comments

⚠️ This issue respects the following points: ⚠️

Bug description

If the list of files in the files app is scrolled down a bit and you try to open the context menu with the right mouse button it opens and then closes immediately again, so you can not use it.

Steps to reproduce

  1. Open a the "files" app
  2. scroll down a bit
  3. Click a file entry with the right mouse button
  4. See that the context menu opens and closes again

Expected behavior

The context menu works as expected (as in NC 28.0.1).

Installation method

Community Manual installation with Archive

Nextcloud Server version

28

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Updated from a MINOR version (ex. 22.1 to 22.2)

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • [ ] Default user-backend (database)
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

arnowelzel avatar Feb 02 '24 17:02 arnowelzel

Having the exact same problem, independent of browser (e.g. Safari or Brave), on a Mac. This 28 version cycle is frustrating …………

mehlkopf avatar Feb 02 '24 22:02 mehlkopf

Having the exact same problem too.

claushviid avatar Feb 06 '24 22:02 claushviid

I confirm this. It basically makes right-click menu useless.

poiNt3D avatar Feb 07 '24 20:02 poiNt3D

Same here, I upgraded from 26 to 28, I should have stayed with 26.

r4lix avatar Feb 12 '24 09:02 r4lix

Confirming this bug on 28.0.2.

Right-click menu is unusable after scrolling down the file list.

Steps to reproduce:

  • upload a few dozen files in a directory
  • scroll down the file list
  • right-click a file

Expected:

  • the menu stays open and allows me to select an action such as Rename, Download, etc.

What happens instead:

  • the menu closes immediately and the view scrolls back all the way up the file list

Workaround:

  • this only happens in the default list view, switching to grid/thumbnails view allows working around the problem (but is not practical as file names are truncated, I cannot see details such as file size/modification time, etc)

nodiscc avatar Feb 18 '24 14:02 nodiscc

For me the right click menu stays, but the page is instantly scrolled up.

I'm not sure how the right click menu is supposed be placed, but that looks a bit off aswell (quite far from both mouse and directory, independent of whether the scroll jumped or not).

I have not tested behaviour of scroll-jump in grid-view, but in that view the menu opens at the same location independent of which folder was rightclicked.

I'm on 28.0.2

Similar jump in scroll position at https://github.com/nextcloud/notes/issues/1227

MrRinkana avatar Feb 19 '24 11:02 MrRinkana

Some additional findings:

The scroll jump only occurs when right-clicking the top most visible folder/file or the lowest one while in listview. The lowest one always scrolls (if you can scroll) but sometimes the lowest visible also can trigger the jump, seems to mostly trigger on the bottomost few.

In gridview it seems less predictable, sometimes right-clicking the topmost visible makes it jump down for example. Clicking the bottommost can trigger the jump, but only if it is alone on the last row (?).

I mentioned that the rightclick menu opens in only one location but that is not completely true, as clicking the topmost row produces one location, the rest another (to two locations in total). Sometimes reloading the page fixes the weird location problem, albeit now the options are highlighted as if some accessibility option got turned on.

In essence; things are weird :sweat_smile:

EDIT: Tested with Edge aswell (Firefox before), and behaviour is still there, with some slight changes in how the right-click menu appears, and which folders trigger the jump in gridview.

MrRinkana avatar Feb 22 '24 12:02 MrRinkana

Similar jump in scroll position at nextcloud/notes#1227

Same thing happen with the pdf viewer.

wargreen avatar Feb 27 '24 00:02 wargreen

Having the exact same problem, independent of browser (e.g. Safari or Brave), on a Mac. This 28 version cycle is frustrating …………

I also have this problem with 28.0.3 using Firefox (123.0) and Safari (16.5.1), but the menu works on Chrome (122.0.6261.94).

theosche avatar Mar 01 '24 09:03 theosche

I was testing the right click menu again with 28.0.3 in Firefox and Chrome: Both are not working when it comes to the position, please see https://github.com/nextcloud/server/issues/43842

refda avatar Mar 01 '24 21:03 refda

Maybe https://github.com/nextcloud/notes/issues/1227 should be closed aswell, since it seems fixed and i suspect it was fixed by the same changes

MrRinkana avatar Apr 02 '24 20:04 MrRinkana

The fix seems unrelated as https://github.com/nextcloud/server/pull/44139 only touches files code which does not interfere with notes code

If the issue cannot be reproduced anymore though, feel free to close it @MrRinkana

Pytal avatar Apr 02 '24 23:04 Pytal

You're right, it was fixed by https://github.com/nextcloud/text/pull/5281

I cannot close the issue, but I made a comment asking op to close if it no longer reproduces

MrRinkana avatar Apr 06 '24 11:04 MrRinkana