mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
code cleanup
This commit is contained in:
parent
6b846249e4
commit
baeb70fdcc
@ -833,7 +833,6 @@
|
|||||||
// ----------
|
// ----------
|
||||||
QUnit.test('Viewer: preventDefaultAction in dblClickHandler', function(assert) {
|
QUnit.test('Viewer: preventDefaultAction in dblClickHandler', function(assert) {
|
||||||
var done = assert.async();
|
var done = assert.async();
|
||||||
var tracker = viewer.innerTracker;
|
|
||||||
var epsilon = 0.0000001;
|
var epsilon = 0.0000001;
|
||||||
var $canvas = $( viewer.element ).find( '.openseadragon-canvas' ).not( '.navigator .openseadragon-canvas' ),
|
var $canvas = $( viewer.element ).find( '.openseadragon-canvas' ).not( '.navigator .openseadragon-canvas' ),
|
||||||
simEvent = {},
|
simEvent = {},
|
||||||
@ -866,15 +865,6 @@
|
|||||||
$canvas.simulate( 'mouseup', simEvent );
|
$canvas.simulate( 'mouseup', simEvent );
|
||||||
};
|
};
|
||||||
|
|
||||||
// function simulateDblTap() {
|
|
||||||
// var touches = [];
|
|
||||||
// TouchUtil.reset();
|
|
||||||
|
|
||||||
// touches.push(TouchUtil.start([0,0]));
|
|
||||||
// TouchUtil.end( touches[0] );
|
|
||||||
// touches.push(TouchUtil.start([0,0]));
|
|
||||||
// TouchUtil.end( touches[1] );
|
|
||||||
// }
|
|
||||||
function simulateDblTap() {
|
function simulateDblTap() {
|
||||||
simulateEnter(2, 2);
|
simulateEnter(2, 2);
|
||||||
simulateDown(2, 2);
|
simulateDown(2, 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user