The URI of TUHH Docker Registry changed from "docker.rz.tu-harburg.de:5000" to "docker.rz.tu-harburg.de". Please update your gitlab-ci.yml files if you use images from this registry.

Commit 7ac60006 authored by Tobias Zeumer's avatar Tobias Zeumer

Reverse approach to solve pinching problem for touchscreens (try to detect...

Reverse approach to solve pinching problem for touchscreens (try to detect desktops, not touch devices); #31, #30
parent 4a821d9c
......@@ -62,7 +62,7 @@ $( document ).ready(function() {
increment: 0.2,
transition: true,
duration: 200,
which: 1,
which: -1,
panOnlyWhenZoomed: true,
easing: "ease-in-out",
$zoomIn: $('.zoom-in'),
......@@ -80,10 +80,19 @@ $( document ).ready(function() {
focal: e
});
});
// Add onetime event listener, that just changes "which" if a touchdevice is detected
// Add onetime event listener, that just changes "which" if a mouse is detected
window.addEventListener('mousemove', function() {
$("#tubhh").panzoom("option", "which", 1);
}, {once: true});
/*
// Other way around; but this requires on simple touch before doing any pinching
// This "might" be the better solution a problem with Win8/10 and touchscreens?
window.addEventListener('touchstart', function() {
alert('fdfd');
$("#tubhh").panzoom("option", "which", -1);
}, {once: true});
*/
// Show welcome entry
show_legend_entry('title_welcome', 'desc_welcome');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment