Commit 11df6324 by Masaru Abe

#12490 PDFのみ3Dの反応が悪い

parent 0a4ad7f5
...@@ -3674,6 +3674,7 @@ function removeObject() { ...@@ -3674,6 +3674,7 @@ function removeObject() {
/* View Component setDefaultEvent */ /* View Component setDefaultEvent */
function setDefaultEvent() { function setDefaultEvent() {
_bTouchDeviceEnabled = isTouchDevice();
var canvasPre = document.getElementById('mainPre'); var canvasPre = document.getElementById('mainPre');
var canvasNext = document.getElementById('mainNext'); var canvasNext = document.getElementById('mainNext');
...@@ -3703,7 +3704,7 @@ function setDefaultEvent() { ...@@ -3703,7 +3704,7 @@ function setDefaultEvent() {
if (avwUserEnvObj.browser == 'msie') { if (avwUserEnvObj.browser == 'msie') {
_bWin8TouchEnabled = window.navigator.msPointerEnabled; _bWin8TouchEnabled = window.navigator.msPointerEnabled;
} else { } else {
if( isTouchDevice ){ if( _bTouchDeviceEnabled ){
document.getElementById('main').addEventListener('touchstart', onTouchstart, false); document.getElementById('main').addEventListener('touchstart', onTouchstart, false);
document.getElementById('main').addEventListener('touchmove', onTouchmove, false); document.getElementById('main').addEventListener('touchmove', onTouchmove, false);
document.getElementById('main').addEventListener('touchend', onTouchend, false); document.getElementById('main').addEventListener('touchend', onTouchend, false);
......
...@@ -1375,7 +1375,7 @@ function resetNaviAction(){ ...@@ -1375,7 +1375,7 @@ function resetNaviAction(){
function onTouchstart(evt){ function onTouchstart(evt){
evt.preventDefault(); //evt.preventDefault();
if(ClientData.IsAddingMarking() == true){ if(ClientData.IsAddingMarking() == true){
return; return;
...@@ -1383,12 +1383,9 @@ function onTouchstart(evt){ ...@@ -1383,12 +1383,9 @@ function onTouchstart(evt){
var bContinue = true; var bContinue = true;
//if (avwUserEnvObj.os == "ipad" || avwUserEnvObj.os == "android") { if( _bTouchDeviceEnabled ){
// evt.preventDefault(); evt.preventDefault();
//} }
//if( isTouchDevice ){
// evt.preventDefault();
//}
if(isLoadingObject){ if(isLoadingObject){
bContinue = false; bContinue = false;
...@@ -1613,7 +1610,7 @@ var isPreventClick = false; ...@@ -1613,7 +1610,7 @@ var isPreventClick = false;
function onTouchmove(evt){ function onTouchmove(evt){
evt.preventDefault(); //evt.preventDefault();
if(ClientData.IsAddingMarking() == true){ if(ClientData.IsAddingMarking() == true){
return; return;
...@@ -1646,9 +1643,9 @@ function onTouchmove(evt){ ...@@ -1646,9 +1643,9 @@ function onTouchmove(evt){
return; return;
} }
//if (avwUserEnvObj.os == "ipad" || avwUserEnvObj.os == "android") { if( _bTouchDeviceEnabled ){
// evt.preventDefault(); evt.preventDefault();
//} }
var touch1 = null; var touch1 = null;
var touch2 = null; var touch2 = null;
...@@ -1891,7 +1888,7 @@ function onTouchmove(evt){ ...@@ -1891,7 +1888,7 @@ function onTouchmove(evt){
function onTouchend(evt){ function onTouchend(evt){
evt.preventDefault(); //evt.preventDefault();
if(ClientData.IsAddingMarking() == true){ if(ClientData.IsAddingMarking() == true){
return; return;
...@@ -1927,9 +1924,10 @@ function onTouchend(evt){ ...@@ -1927,9 +1924,10 @@ function onTouchend(evt){
return; return;
} }
//if (avwUserEnvObj.os == "ipad" || avwUserEnvObj.os == "android") { if( _bTouchDeviceEnabled ){
// evt.preventDefault(); evt.preventDefault();
//} }
_lastScaleDelta = userScale -1; _lastScaleDelta = userScale -1;
if(_bWin8TouchEnabled){ if(_bWin8TouchEnabled){
......
...@@ -174,6 +174,7 @@ var _lastScaleDelta = 0; ...@@ -174,6 +174,7 @@ var _lastScaleDelta = 0;
var _bWin8TouchEnabled = false; var _bWin8TouchEnabled = false;
var _bTransitionEnable = true; var _bTransitionEnable = true;
var _bTouchDeviceEnabled = false;
//End Function : No.20 //End Function : No.20
......
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