teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

コピペミス

2017/09/06 04:27

投稿

massiveGorilla
massiveGorilla

スコア21

title CHANGED
File without changes
body CHANGED
@@ -9,15 +9,5 @@
9
9
  var delta=evt.detail? evt.detail*(-120) : evt.wheelDelta;
10
10
  delta > -120 ? obj.ratio*=1.1 : obj.ratio*=0.9;
11
11
  setBackground();
12
- },
13
- imgTouchstart = function(e){
14
- if(e.touches.length > 1){
15
12
  }
16
- else{
17
- stopEvent(e);
18
- obj.state.dragable = true;
19
- obj.state.mouseX = e.touches[0].pageX;
20
- obj.state.mouseY = e.touches[0].pageY;
21
- }
22
-
23
13
  ```

1

記入漏れ

2017/09/06 04:27

投稿

massiveGorilla
massiveGorilla

スコア21

title CHANGED
File without changes
body CHANGED
@@ -3,11 +3,21 @@
3
3
  どうしてでしょうか。。
4
4
 
5
5
  ```javascript
6
- zoomImage = function(e)
6
+ zoomImage = function(e)
7
7
  {
8
8
  var evt=window.event || e;
9
9
  var delta=evt.detail? evt.detail*(-120) : evt.wheelDelta;
10
10
  delta > -120 ? obj.ratio*=1.1 : obj.ratio*=0.9;
11
11
  setBackground();
12
+ },
13
+ imgTouchstart = function(e){
14
+ if(e.touches.length > 1){
12
15
  }
16
+ else{
17
+ stopEvent(e);
18
+ obj.state.dragable = true;
19
+ obj.state.mouseX = e.touches[0].pageX;
20
+ obj.state.mouseY = e.touches[0].pageY;
21
+ }
22
+
13
23
  ```