Commit graph

42 commits

Author SHA1 Message Date
Jordan Eldredge
777d482e73 Center windows correctly, even if the windows don't start at 0,0
This is particularly noticeable when state has been rehydrated from a serialized state.
2018-09-30 22:04:04 -07:00
Jakub Ďuraš
fa50df7f6b Remove window wrappers (#636)
* Remove parent wrapper, add filtering out closed windows

* Add the rest of window manager changes (vscode ignores whitespace)

* Make prettier happy
2018-08-23 06:54:15 -07:00
Jordan Eldredge
593109e8c5 Improve centering within given node 2018-08-18 10:02:40 -07:00
Jordan Eldredge
f799f727b2 Add and enforce class properties 2018-08-17 21:43:26 -07:00
Jakub Ďuraš
1b055b0b1f Optimize painting (#631)
* Optimize marquee and window positioning

* Move transform on marquee out from new object

* Fix typo
2018-08-17 07:18:42 -07:00
Jordan Eldredge
3ef93e28ab Reset hidden state when opening window
Fixes #626
2018-07-29 21:36:44 -07:00
Jordan Eldredge
2f0d20bbc8 Add logging to catch error
Some users are seeing empty moving sets. Why?
2018-07-28 15:09:15 -07:00
Jordan Eldredge
a12836148d Fix skins with region.txt
If the positioning is sub-pixel, the clip-path can get off a bit
2018-07-26 08:01:26 -07:00
Jordan Eldredge
a571387780 Enable Butterchurn! 2018-07-13 07:47:49 -07:00
Jordan Eldredge
b0b9ddd441 Hidden windows? 2018-07-11 20:57:41 -07:00
Jordan Eldredge
3b6dd69576 Don't drag closed windows 2018-07-02 07:12:28 -07:00
Jordan Eldredge
572c6dd497 Fix dragging in Safari 2018-06-30 13:29:32 -07:00
Jordan Eldredge
0fd5eedf9d Revert "Fix initial position when container is not at the top of the page"
This reverts commit 1d31b7fa86.
2018-06-24 09:25:21 -07:00
Jordan Eldredge
1d31b7fa86 Fix initial position when container is not at the top of the page 2018-06-23 21:45:24 -07:00
Jordan Eldredge
730d676801 Center within the rendered node 2018-06-21 21:03:16 -07:00
Jordan Eldredge
f17d88053c Ensure we don't render off screen if we are in a hidden iframe when we load 2018-06-14 06:50:05 -07:00
Jordan Eldredge
375d9d06c9 Extract calculateBoundingBox 2018-06-12 20:57:46 -07:00
Jordan Eldredge
a7a5ef5e91 Upgrade prettier 2018-05-28 15:56:18 -07:00
Jordan Eldredge
0e48b6c8c2 Allow user defined initial layout 2018-05-13 20:25:10 -07:00
Jordan Eldredge
fc9f1268e9 Derive window size/position from state rather than DOM 2018-05-11 17:51:50 -07:00
Jordan Eldredge
0f27b2c47e Allow gen window to be resized via drag target 2018-04-15 11:08:29 -07:00
Jordan Eldredge
2450cfb6be Don't center windows on resize
Fixes #530
2018-03-28 20:26:48 -07:00
Jordan Eldredge
b34126c601 Ensure autolayout is always on the pixel grid 2018-03-25 20:20:06 -07:00
Jordan Eldredge
6cd8e7112b Maintain window relationships on resize 2018-03-24 21:55:40 -07:00
Jordan Eldredge
6ee338fc76 Remove event listener
I was a good boy, and made sure to remove my mouse move event listener when the user's mouse came up.

Sadly, I didn't then _also_ remove the mouse up event listener.

This meant that after clicking a few times, the whole app would stall quite a bit any time your mouse came up.
2018-03-10 16:02:49 -08:00
Jordan Eldredge
bb5502461f Get window size more robustly 2018-02-21 20:03:11 -08:00
Jordan Eldredge
ee04f2adc9 Allow Winamp2-js to center iteself in a container element 2018-02-19 20:10:37 -08:00
Jordan Eldredge
13a57202f5 Fix bug where snapping did not quite work properly. 2018-02-03 15:30:34 -08:00
Jordan Eldredge
d6c361f77a Add TODO about abuts 2018-01-17 19:00:36 -08:00
Jordan Eldredge
bb816d3693 Improve handling to multipel concurrent diffs 2018-01-17 19:00:36 -08:00
Jordan Eldredge
e8ce04e554 Apply window snap and border snap at the same time. Fixes #381 2018-01-17 19:00:36 -08:00
Jordan Eldredge
341fe27013 Split out moving/stationary logic 2018-01-15 20:56:58 -08:00
Jordan Eldredge
7e20788245 Closing windows does not cause other windows to take its place
Fixes #440
2018-01-15 20:32:41 -08:00
Jordan Eldredge
a233a98c9e Fix annoyance where dragging could cause text to get highlighted 2017-11-18 16:43:39 -08:00
Jordan Eldredge
c065036e87 Remove event listener when unmouting 2017-11-16 21:31:37 -08:00
Jordan Eldredge
dbef151f9a Handle refs getting unloade 2017-09-16 21:44:05 -07:00
Jordan Eldredge
994c725f60 Main window brings connected windows along. 2017-09-08 19:41:21 -07:00
Jordan Eldredge
7367f0a115 Remove unused ignore 2017-08-28 17:02:15 -07:00
Jordan Eldredge
a0560d0ccc Upgrade Prettier 2017-08-28 17:02:08 -07:00
Jordan Eldredge
43d54e6504 Upgrade Prettier 2017-04-13 12:26:47 -07:00
Jordan Eldredge
c40a78845b Swith to Prettier 2017-03-20 23:14:15 +00:00
Jordan Eldredge
4bd28d0053 Deprecate jsx extension 2017-01-17 17:51:21 -08:00
Renamed from js/components/WindowManager.jsx (Browse further)