puter icon indicating copy to clipboard operation
puter copied to clipboard

Horizontal scrolling can occur in desktop

Open KernelDeimos opened this issue 1 year ago • 12 comments

Notes

  • [good first issue] - is tagged because this problem doesn't require much Puter-specific knowledge, but this issue in particular might be challenging to all but the CSS savant.

Issue Description It is still possible to scroll horizontally on Puter when windows are dragged partially past the right side of the screen.

Steps to Reproduce This is difficult to reproduce consistently but the following have worked sometimes:

  • dragging an app window past the right-edge, which will then "bounce back", and then right-clicking the app icon in the titlebar.
  • dragging an app window past the right-edge, then re-focusing it from the taskbar while another app is maximized

This was tested in Chromium

Expected & Actual Behavior

  • body shouldn't scroll

Addition Information or Screenshots (if applicable) image

Deployment

  • [x] Production (puter.com)
  • [ ] Development (npm run start)
  • [ ] Docker (via docker run)
  • [ ] Docker (via docker-compose)

Puter version (if accessible) 2.4.1

KernelDeimos avatar Aug 23 '24 18:08 KernelDeimos

I'm interested on working with this project

Sarishc avatar Aug 27 '24 04:08 Sarishc

awesome! assigned. Let me know if you need help 😇

jelveh avatar Aug 27 '24 04:08 jelveh

hey I am interested on working on this issue, I can see that this issue has not been worked on in a while

SaqAsh avatar Dec 23 '24 01:12 SaqAsh

Thank you! Go for it. Assigned.

jelveh avatar Dec 23 '24 01:12 jelveh

Let me know if you need any help

jelveh avatar Dec 23 '24 01:12 jelveh

Thanks! Probably gonna need it, first time here haha

SaqAsh avatar Dec 23 '24 01:12 SaqAsh

I'm here to help 🫡

jelveh avatar Dec 23 '24 01:12 jelveh

Hey! I was able to trigger this issue consistently. All you need to do is have the screen be a size similar to one of a laptop, and follow one of the steps listed above. The difficulty is finding what css is causing this issue, currently looking at style.css in gui. Please let me know if you would be able to point me in a direction. That would be great! Thanks

SaqAsh avatar Dec 25 '24 04:12 SaqAsh

Ok, I'm a little confused now because I can't reproduce this anymore. Could you tell me how you managed to reproduce it consistently? If I can reprod I'll be able to help with the CSS

jelveh avatar Dec 25 '24 05:12 jelveh

To reproduce the issue, I followed these steps:

Moved the text editor to the right edge of the screen. Maximized the Dev Center window to full screen. Clicked the taskbar at the bottom to refocus on the text editor. This reliably triggers the bug, but only when the window is resized to be smaller than the screen. I've attached a screenshot for reference. Let me know if it works! image

SaqAsh avatar Dec 25 '24 15:12 SaqAsh

Yep, now I can reprod. Thank you for the explanation. I'm trying to figure out what causes it and will update you here when I find out. I suspect it has to do with how focusWindow works, but not sure yet.

jelveh avatar Dec 26 '24 22:12 jelveh

Yeah do let me know, that would be great!

SaqAsh avatar Dec 29 '24 03:12 SaqAsh

An eternity later, I think I know what the issue is now! It's the forced focus that is applied to the text input of notepad when the taskbar item is clicked. Now I need to figure out a fix.

jelveh avatar Jun 28 '25 18:06 jelveh

An eternity later, I think I know what the issue is now! It's the forced focus that is applied to the text input of notepad when the taskbar item is clicked. Now I need to figure out a fix.

Haha let me know!

SaqAsh avatar Jun 28 '25 19:06 SaqAsh

hey I am interested on working on this issue, can you assign this to me!!

prateekbisht23 avatar Jul 31 '25 17:07 prateekbisht23

Awesome! assigned. Let us know if we could help with anything.

jelveh avatar Jul 31 '25 19:07 jelveh

the codebase is pretty big and its difficult to locate the part that causes the issue!!

prateekbisht23 avatar Aug 05 '25 16:08 prateekbisht23

Yeah, this is a tricky one. I suspect multiple things are interacting with each other causing it. Where are you at right now in terms of clues? I should be able to help

jelveh avatar Aug 05 '25 18:08 jelveh

From what I’ve seen so far, the desktop apps are created using a shared ID-based system rather than as standalone modules. This makes it tricky to isolate and work on the Notepad app specifically, since a lot of its behavior is coupled with the other apps!! Also I’m also struggling to find where Notepad’s details (CSS, styling, and related logic) are defined, particularly the part that might be causing the problem. Any pointers on where I should be looking!?

prateekbisht23 avatar Aug 15 '25 05:08 prateekbisht23

Can I take this up?

pranav200408 avatar Aug 15 '25 20:08 pranav200408