Brian Mathews
Brian Mathews

Reputation: 692

document.onmousemove not firing over a embedded pdf object

I have a PDF document embedded in div in a page. The page also has re-sizable regions to make one column smaller/larger than another on demand.

When re-sizing the regions, onmousemove events are not fired when the mouse is over the pdf, thus breaking a lot of the re-size functionality.

Any way to get these onmousemove events?

Thanks!

Upvotes: 0

Views: 404

Answers (2)

Brian Mathews
Brian Mathews

Reputation: 692

Ended up overlaying a div on top of the PDF.

Upvotes: 0

James
James

Reputation: 111900

Not that I know of.

One option is to replace the embedded PDF with a placeholder (a <div> for example, same dimensions as embedded PDF) during dragging. So, when the mousedown event fires, hide the PDF, show the placeholder. When the user has finished dragging show the PDF again.

Upvotes: 2

Related Questions