Questions tagged [pan]

"panning" refers to the rotation in a horizontal plane of an object or viewport.

453 questions
143
votes
12 answers

Pan & Zoom Image

I want to create a simple image viewer in WPF that will enable the user to: Pan (by mouse dragging the image). Zoom (with a slider). Show overlays (rectangle selection for example). Show original image (with scroll bars if needed). Can you explain…
Yuval Peled
  • 4,988
  • 8
  • 30
  • 36
63
votes
3 answers

How can I capture which direction is being panned using UIPanGestureRecognizer?

Ok so I have been looking around at just about every option under the sun for capturing multi-touch gestures, and I have finally come full circle and am back at the UIPanGestureRecognizer. The functionality I want is really quite simple. I have…
Brandon B.
  • 727
  • 2
  • 8
  • 9
36
votes
7 answers

Can I navigate, zoom in and zoom out R plots?

I would like to know if R allows to pan and zoom images produced with the "plot" function. I would like to obtain the plot transformation using the mouse and not through the command line, is it possible? Thanks in advance.
rlar
  • 856
  • 1
  • 10
  • 15
27
votes
8 answers

How do I capture the point initially tapped in a UIPanGestureRecognizer?

I have an app that lets the user trace lines on the screen. I am doing so by recording the points within a UIPanGestureRecognizer: -(void)handlePanFrom:(UIPanGestureRecognizer *)recognizer { CGPoint pixelPos = [recognizer…
todd412
  • 1,308
  • 2
  • 17
  • 24
26
votes
5 answers

Is there a hot-key to enable Storyboard panning with mouse in Xcode 4.3?

I'm looking for a hot-key, e.g. spacebar + Click 'n drag, that will enable me to use the mouse to pan Xcode Storyboard. Obviously I can use the mouse-wheel to pan the storyboard, but it's far more tedious that clicking and dragging it to the exact…
Jonathan Beebe
  • 5,241
  • 3
  • 36
  • 42
18
votes
6 answers

How to make windowSoftInputMode="adjustPan" pan more

I have an activity with a bunch of EditText fields on it, and the windowSoftInputMode is set to adjustPan, this mostly does what I want, however for the editText at the bottom of the layout, it doesn't pan enough. It'll pan to show the top line of a…
superfell
  • 18,780
  • 4
  • 59
  • 81
17
votes
1 answer

D3.js Zooming and panning a collapsible tree diagram

I'm using D3.js to plot a collapsible tree diagram like in the example. It's working mostly well, but the diagram might change dramatically in size when it enters its normal function (ie instead of the few nodes I have now, I'll have a lot more). I…
Joum
  • 3,189
  • 3
  • 33
  • 64
15
votes
5 answers

Zooming and scrolling in SpriteKit

I am new to SpriteKit. I need to display an image via UIImageView OR SpriteNode (it is a background image for a game). However, I need the user to be able to zoom in to the background and pan around. I accomplished this easily without using…
Justin Moore
  • 884
  • 2
  • 9
  • 22
15
votes
3 answers

WPF Image Pan, Zoom and Scroll with layers on a canvas

I'm hoping someone can help me out here. I'm building a WPF imaging application that takes live images from a camera allowing users to view the image, and subsequently highlight regions of interest (ROI) on that image. Information about the ROIs…
KyleLib
  • 774
  • 3
  • 9
  • 26
14
votes
4 answers

Zoom and Panning ImageView Android

I have created a zoom and pan class for an ImageView. Features I am trying to create. - It pans on single finger touch and movement - It zooms and pans on two finger touch and movement For the most part this works very well. It has a slight bug when…
Hank
  • 2,456
  • 3
  • 35
  • 83
13
votes
1 answer

UIPanGestureRecognizer does not switch to state "End" or "Cancel" if user panned x and y in negative direction

I've got a little problem with the UIPanGestureRecognizer. The Recognizer does not report the UIGestureRecognizerStateEnded state if the user panned to the top left (means negative x and y directions) The state changes to…
Dunkelstern
  • 1,624
  • 12
  • 18
13
votes
4 answers

Detect 3 fingers pan gesture even outside a macOS app's window perpetually

How can I detect a 3 fingers pan gesture on my mac trackpad everywhere on the screen (not only in my app's window) perpetually (without having the focus on my app's window) ? Thanks !
Jonathan
  • 873
  • 3
  • 9
  • 23
12
votes
3 answers

Zooming and Panning a Mercator Map centered on the Pacific using d3.js

Apologies if this is a simple case of me being blind to the obvious, but I am trying to put together a page that shows a map of the world (data sourced from a TopoJSON file) in Mercator projection centered on the Pacific. I.e. Europe on the left,…
d3noob
  • 2,133
  • 3
  • 29
  • 36
11
votes
4 answers

Flutter: How to implement Rotate and Pan/Move gesture for any container?

I have implemented the Scale gesture for the container. Also, I have added onHorizontalDragUpdate and onVerticalDragUpdate. But when I try to add both, I get an exception saying can't implement both with Scale gesture. Even for Pan gesture, it…
Ankur Prakash
  • 1,417
  • 4
  • 18
  • 31
10
votes
2 answers

How can I pan an image larger than its container correctly using jQuery?

I'm creating quite a cool image viewer but am stuck in one particular part: panning the image when zoomed in. It seems a trivial problem and I've tried out pretty much all answers to similar questions on SO, but each time, something isn't working…
Fer
  • 4,116
  • 16
  • 59
  • 102
1
2 3
30 31