Skip to content

Added dragging functionality to the window - #3

Open
aliAljaffer wants to merge 1 commit into
Ranork:mainfrom
aliAljaffer:feature-draggable-window
Open

Added dragging functionality to the window#3
aliAljaffer wants to merge 1 commit into
Ranork:mainfrom
aliAljaffer:feature-draggable-window

Conversation

@aliAljaffer

Copy link
Copy Markdown

Hello! This is related to the closed issue #2. I encountered the same issue with the window being at the center of the screen. My monitor resolution is 2560x1440, so the hardcoded values in main.js for 1920x1080 didn't apply nicely 😊.
I went ahead and added the ability to drag the window around using css classes with app-region: drag and app-region: no-drag so users can adapt to their own screens.

Reference: https://www.electronjs.org/docs/latest/tutorial/custom-window-interactions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant