Ctrl + MouseWheel zoom on PDF will cause page zoom

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.

Ctrl + MouseWheel zoom on PDF will cause page zoom

Postby jimcai » Mon Dec 11, 2017 2:49 am

cef disable ctrl + MouseWheel zoom by default. However, when I place a pdf in iframe like:
<iframe src="2.pdf"></iframe>
then I move mouse into pdf area, and the ctrl + MouseWheel will cause pdf zoom in/out, as well as parent page.
How could I make the zoom only in pdf window, or just disable ctrl+mousewheel zoom feature?
jimcai
Newbie
 
Posts: 1
Joined: Mon Dec 11, 2017 2:40 am

Re: Ctrl + MouseWheel zoom on PDF will cause page zoom

Postby vbernard » Tue Sep 08, 2020 3:04 am

Hello,

We're having the same problem, did anyone come up with a solution please?

In our case, we're catching WM_MOUSEWHEEL messages and applying zoom manually; if we filter this event, the PDF is not zoomed; if we dispatch it to CEF, the PDF is zoomed but so is the parent page.
vbernard
Newbie
 
Posts: 1
Joined: Tue Sep 08, 2020 3:00 am


Return to Support Forum

Who is online

Users browsing this forum: amaitland and 31 guests