File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Assets/JCSUnity/Scripts/Interactive Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -189,8 +189,8 @@ protected virtual void FixedUpdate()
189189 // to here...
190190 mWheelDegree = Input . GetAxis ( "Mouse ScrollWheel" ) ;
191191#elif ( UNITY_ANDROID || UNITY_IPHIONE || UNITY_IOS )
192- var slideInput = JCS_TouchInput . FirstInstance ( ) ;
193- mWheelDegree = slideInput . TouchDistanceDelta ;
192+ var input = JCS_TouchInput . FirstInstance ( ) ;
193+ mWheelDegree = input . touchDistanceDelta ;
194194#endif
195195 ZoomCamera ( mWheelDegree ) ;
196196 }
Original file line number Diff line number Diff line change @@ -226,8 +226,8 @@ protected override void LateUpdate()
226226 // to here...
227227 mWheelDegree = Input . GetAxis ( "Mouse ScrollWheel" ) ;
228228#elif ( UNITY_ANDROID || UNITY_IPHIONE || UNITY_IOS )
229- var slideInput = JCS_TouchInput . FirstInstance ( ) ;
230- mWheelDegree = slideInput . TouchDistanceDelta ;
229+ var input = JCS_TouchInput . FirstInstance ( ) ;
230+ mWheelDegree = input . touchDistanceDelta ;
231231#endif
232232 ZoomCamera ( mWheelDegree ) ;
233233 }
You can’t perform that action at this time.
0 commit comments