3 ms·
...or you could have gone for the traditional, slightly simpler solution, which is to have a setInterval function that monitors window height/width, stores a ti
by thaumaturgy 17y ago
...or you could have gone for the traditional, slightly simpler solution, which is to have a setInterval function that monitors window height/width, stores a timestamp for the last time that the window changed, and stores a simple state code.
With that method, you can easily create your own event generator and post events for when the window begins changing, when it is still changing, and when it is done changing.
His method is pretty neat, though.