-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[NO PAYMENT NEEDED] Desktop - Unable to move click>dragging the header in desktop app #23298
Comments
Triggered auto assignment to @jliexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
To reproduce this accurately, you just have to scroll the report such that a report item is behind the report header. Once in this scroll position, the window can not be dragged. This happened after #21885 was merged. Specifically, adding this line is the culprit here. More details in this comment. The regression period for above is ending today. Since this issue was reported on Slack before today, I think the original PR author should be fixing this. |
Nice, thanks for the input @allroundexperts ! @Skalakid and @Santhosh-Sellavel - going to assign this issue to you as it's a regression (?) cc @conorpendergrast in case you need to adjust payments and @roryabraham as the Engineer who was assigned. |
@jliexpensify, @roryabraham, @Santhosh-Sellavel Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@Skalakid Can you take care of this please, thanks! |
@roryabraham I don't think that its just the red area. If you scroll the chat in the screenshot such that the |
The real issue IMO here is that there is no stacking order of the |
hmmm ok, well there may be another alternative:
Note that the browserWindow APIs are in the main process, so we'll need to use IPC + send events across the context bridge from the renderer process, so I'm skeptical that we'll be able to do in a performant way / without jankiness in the drag gestures. |
This video might help you understand the issue better. Screen.Recording.2023-07-25.at.5.10.17.AM.movI do agree that this is not easy to fix. |
Not overdue! |
@Skalakid Bump |
@Santhosh-Sellavel sorry for the delay, I missed notification about this issue. I'll get into that |
According to Electron documentation, only the buttons in the draggable area should be marked ad no-draggable:
So I think there is no need to put
After these changes, there should not be problems with dragging the desktop app widow. What do you think about it @Santhosh-Sellavel @roryabraham? |
Makes sense to me @Skalakid 👍🏼 Alternatively, since this is very browser-specific we could maybe just use a css selector to apply the |
@roryabraham that's a good idea. In this case, we should tag all pressable components with some kind of label to access them from CSS. For example, we can set data-id or data-tag to be equal to #drag-area {
-webkit-app-region: drag;
}
#no-drag-area, #drag-area [class*="touchAction"] {
-webkit-app-region: no-drag;
} since all Pressables have |
Not overdue! |
This issue has not been updated in over 15 days. @jliexpensify, @roryabraham, @Santhosh-Sellavel eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
We are close to merging the PR! |
Merged |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.59-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-09-07. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@jliexpensify No payment due here as this is a regression! |
@roryabraham I think we can skip the checklist, as all parties are aware of mistakes. I think we don't need a regression test for this one. Should we start a discussion about it? |
Sounds good to me. This was really a one-off issue that stemmed from breaking changes in Electron, so not much to learn here other than "oops we missed that in testing" |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
App to move around like other windows
Actual Result:
App doesn't move around, or only moves around if you click above LHN (I've experienced it both ways)
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.42-18
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
2023-07-20_13-48-24.1.mp4
Expensify/Expensify Issue URL:
Issue reported by: @mallenexpensify
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689713770804419
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: