OSDir


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting window resize complete on AIR native desktop


Yeah, I figured I'd have to use a timer kludge like in the SO thread. Just one more of those things about AIR that annoys me.

I've implemented that pattern and it's working, though the resize events fire at roughly 200ms intervals during a drag. A 50ms timer interval suggested in SO of course couldn't work. I had to implement a 300ms timer interval to be reliably notified only after the resizing process ends with the user releasing the mouse capture. 

But it should be possible to get the mouse up event after the resize. That should be considered a bug in AIR, IMO.

The timer kludge results in delaying a REST API call for 300ms from the last resize event is received, making the app appear noticeably unresponsive. 

Thanks for your response, Kyle. I guess I'll just have to live with it.

Cheers

Erik

On Oct 15, 2018, at 3:33 PM, kamcknig <kamcknig@xxxxxxxxx> wrote:

As far as I know there isn't a way, a stackoverflow user asked the same 

https://stackoverflow.com/questions/11014968/detect-when-the-resize-event-has-finished

I can't think of any way to do so.

Kyle



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/