mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
disable dragging on background images
This commit is contained in:
parent
c1104cb00f
commit
7c12b228c2
@ -152,7 +152,7 @@ var pdf2htmlEX = (function(){
|
||||
this.container.add(this.outline).on('click', '.'+CSS_CLASS_NAMES['link'], this, this.link_handler);
|
||||
|
||||
// disable background image draging
|
||||
$('.'+CSS_CLASS_NAMES['background_image'], this.container).on('dragstart', function(e){return false;});
|
||||
$('img', this.container).on('dragstart', function(e){return false;});
|
||||
|
||||
this.render();
|
||||
|
||||
|
@ -192,6 +192,9 @@ void HTMLRenderer::startPage(int pageNum, GfxState *state, XRef * xref)
|
||||
<< " " << CSS::PAGE_CONTENT_BOX_CN << pageNum
|
||||
<< "\">";
|
||||
|
||||
/* an empty div to prevent selection blinks */
|
||||
f_pages.fs << "<div></div>";
|
||||
|
||||
if(param.process_nontext)
|
||||
{
|
||||
f_pages.fs << "<img class=\"" << CSS::BACKGROUND_IMAGE_CN
|
||||
|
Loading…
Reference in New Issue
Block a user