SetZoomLevel in OnAddressChange

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

SetZoomLevel in OnAddressChange

Postby Rister » Sun Feb 12, 2023 8:59 am

Hi,
facing the problem of setting the zoom level at the right moment in order to avoid flickering, I noticed that regularly at the formum was suggested making this periodically comparatively often (50 ms).

But I noticed that in the docs
  • for SetZoomLevel "If called on the CEF UI thread the change will be applied immediately"
  • for AddressChanged event: "It's important to note this event is fired on a CEF UI thread"
I made a SetZoomLevel call just once from AddressChanged handler and everything looked ok, no flickering

So is this method can be used? Probably I need some additional checks in order to not pass it where it should not be passed?

Thanks.
Rister
Newbie
 
Posts: 2
Joined: Thu Nov 17, 2022 6:55 am

Return to Support Forum

Who is online

Users browsing this forum: Majestic-12 [Bot] and 207 guests