question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pan is not working in iPhone

See original GitHub issue
viewer.addHandler('canvas-drag', function(e){
		  Toast("canvas drag");
		  if( e.originalEvent.pointerType !="touch" || !isDrawingMode) return;
		  console.log('drag');
		  console.log(e);
		  dragAmount++;
		  if( true ){
			//console.log('panning');
			var x = e.originalEvent.clientX - startx;
			var y = e.originalEvent.clientY - starty;
			var point = new OpenSeadragon.Point(-x, -y);
			var panBy = viewer.viewport.deltaPointsFromPixels(point);
			viewer.viewport.panBy(panBy);
			startx = e.originalEvent.clientX;
			starty = e.originalEvent.clientY;
		  }
		});

this code is working in android phone but not working on iPhone. Is there something missing or wrong ?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
salman-gitcommented, Mar 16, 2017

Thanks. It works now.

1reaction
salman-gitcommented, Mar 5, 2017

I have tried with OSD position position property and it didn’t work. I will try touches array.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Panning not working properly - Apple Community
The "getting softer as you pan" is the Pan LAw in Logic at work (panning hard left or hard right lowers the volume...
Read more >
How to Fix the iOS Device Detection Problem - PanFone
This article gives you the method to fix iOS device detection problem. What you need to do if PanFone fails to recognize your...
Read more >
iPhone tethering not working via bluetooth - Ask Different
4 Answers 4 · On your iPhone, go to Settings -> General -> Reset and choose Reset Network Settings . · The iPhone...
Read more >
pan not working iOS, works on everything else. #1054 - GitHub
We checked Android and Desktop, both work fine. But on iOS products nothing happens when a user tries to swipe(pan). Any ideas? The...
Read more >
Troubleshoot Panopto For IOS
Welcome to Panopto Support · Welcome to the Panopto Forums · Panopto Documentation.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found