brianchirls / Seriously.js

A real-time, node-based video effects compositor for the web built with HTML5, Javascript and WebGL
MIT License
3.87k stars 354 forks source link

Question: Resize Target when browser window changes while maintaining transform cover? #133

Closed justono1 closed 7 years ago

justono1 commented 7 years ago

I have the reformat set on load with the cover mode. I have an event listener set up for the window resize but I can't seem to find a function in the seriously js that will resize the canvas as the window size changes.

justono1 commented 7 years ago

Sorry for the premature comment I ended up figuring it out.

In my resize event listener I first had to set the new target size then just recall the reformat width and height. I was skipping the step of applying the new size to the target.

brianchirls commented 7 years ago

Glad you figured it out.

On Oct 17, 2016 11:04 AM, "Justin Gauthier" notifications@github.com wrote:

Sorry for the premature comment I ended up figuring it out.

In my resize event listener I first had to set the new target size then just recall the reformat width and height. I was skipping the step of applying the new size to the target.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/brianchirls/Seriously.js/issues/133#issuecomment-254234157, or mute the thread https://github.com/notifications/unsubscribe-auth/AAeDA8ZEvkcN7VXPlpJmvFkw7_fG_8H6ks5q045zgaJpZM4KYtGr .