mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Don't toggle canvas on right-mouse click
This commit is contained in:
parent
5969c95481
commit
8f575a446d
@ -65,21 +65,24 @@ var REFTEST = window.location.search.indexOf('reftest') !== -1;
|
|||||||
.appendTo(document.body);
|
.appendTo(document.body);
|
||||||
if (!CI) {
|
if (!CI) {
|
||||||
$canvas.siblings().toggle();
|
$canvas.siblings().toggle();
|
||||||
$(window).click(function() {
|
$(window).click(function(event) {
|
||||||
var scrollTop = $(window).scrollTop();
|
if (event.button === 0) {
|
||||||
$canvas.toggle().siblings().toggle();
|
var scrollTop = $(window).scrollTop();
|
||||||
$(document.documentElement).css(
|
$canvas.toggle().siblings().toggle();
|
||||||
'background',
|
$(document.documentElement).css(
|
||||||
$canvas.is(':visible') ? 'none' : ''
|
'background',
|
||||||
);
|
$canvas.is(':visible') ? 'none' : ''
|
||||||
$(document.body).css(
|
);
|
||||||
'background',
|
$(document.body).css(
|
||||||
$canvas.is(':visible') ? 'none' : ''
|
'background',
|
||||||
);
|
$canvas.is(':visible') ? 'none' : ''
|
||||||
throwMessage(
|
);
|
||||||
'Canvas Render ' + ($canvas.is(':visible') ? 'visible' : 'hidden')
|
throwMessage(
|
||||||
);
|
'Canvas Render ' +
|
||||||
$(window).scrollTop(scrollTop);
|
($canvas.is(':visible') ? 'visible' : 'hidden')
|
||||||
|
);
|
||||||
|
$(window).scrollTop(scrollTop);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
$(document.documentElement).css(
|
$(document.documentElement).css(
|
||||||
'background',
|
'background',
|
||||||
|
Loading…
Reference in New Issue
Block a user