Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Fixed draggable areas of window. #4296

Merged
merged 1 commit into from
Sep 27, 2016
Merged

Fixed draggable areas of window. #4296

merged 1 commit into from
Sep 27, 2016

Conversation

bsclifton
Copy link
Member

@bsclifton bsclifton commented Sep 25, 2016

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).

Fixed draggable areas of window.

  • parent item marks all as draggable
  • child items exclude themself as needed
  • parent level draggable is disregarded if modal is open, menu is open, etc (using shouldAllowWindowDrag)

Fixes #4235

Auditors: @bbondy

Here's a live demo on Windows 7

  • red areas are draggable
  • yellow areas are excluding themselves from this (marked as no-drag)
    fix-drag-area

@bsclifton bsclifton added this to the 0.12.2dev milestone Sep 25, 2016
@bbondy
Copy link
Member

bbondy commented Sep 25, 2016

can we ship the red/yellow? 😛

@bsclifton
Copy link
Member Author

bsclifton commented Sep 25, 2016

Still investigating why the min/max/close are buttons are not clickable when magnification is at 150%.

I created a bare bones electron project to help understand why and have reproduced some drag issues
https://github.com/bsclifton/electron-quick-start

@bsclifton
Copy link
Member Author

Opened an upstream issue electron/electron#7347

Looking through the electron source now to collect more info and understand the root cause

@bbondy bbondy modified the milestones: 0.12.3dev, 0.12.2dev Sep 26, 2016
@bsclifton
Copy link
Member Author

This patch can be accepted as soon as brave/muon#63 is merged! 😄

@bbondy - if you were able to review the electron change, apply it, and then re-test this patch you should be pleasantly surprised 😄

- parent item marks all as draggable
- child items exclude themself as needed
- parent level draggable is disregarded if modal is open, menu is open, etc (using shouldAllowWindowDrag)

Other touch-ups:
- tabs bar is now draggable (no longer right-clickable)
- caption button drag and surrounding area is correct now
- after acceptance of electron PR, corners are easy to click (hit testing)

Fixes #4235
Fixes #4144

Depends on brave/muon#63

Auditors: @bbondy @jonathansampson
@bbondy
Copy link
Member

bbondy commented Sep 27, 2016

++

@alexwykoff
Copy link
Contributor

Note for QA: Be sure to check cursor-in-address bar vs not. These two different modes may have results you did not expect :
drag_test

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lots of regions on the titlebar can't be dragged but should be able to be dragged
5 participants