Questions tagged [panning]

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

"panning" refers to the rotation in a horizontal plane of an object or viewport. This is a term usually applies to cameras (or the viewport, in computer terms).

206 questions
0
votes
1 answer

SVG panning in React results in weird behavior

The below React component should allow for panning of an SVG. It does, but for some reason the SVG's movement accelerates exponentially so that a few pixels movement of the mouse pointer results in increasingly large movement of the SVG (or rather,…
Ben Upham
  • 63
  • 1
  • 6
0
votes
0 answers

Pan camera in 3D scene

Im writing a 3D application where I need to pan the camera using the mouse cursor. As in many 3D applications u press the mousewheel and move the mouse to pan the camera. What Im doing is calculating the change in mouse location (dx, dy) to…
Zenz
  • 1
0
votes
1 answer

WPF Scrollview Panning deceleration

So official documentation does not state any "default" values on this topic. I have tried with several values like 0.01, 0.1, 1 and I can't seem to get the effect where the ScrollView keeps scrolling after an user lifts a finger.
0
votes
0 answers

How to disable Ctrl key while zooming in ScrollViewer

I'm using ScrollViewer control to zoom an image, I manage to set ZoomMode="Enabled" to enable the zooming function. But the problem is, it only works by holding Ctrl key and mouse wheel! Is there any way to just using mouse wheel? Or change the…
Phap Duong Dieu
  • 164
  • 2
  • 7
0
votes
1 answer

Manually pan audio in three.js

I'm looking at the Audio and PositionalAudio objects, and I cannot find a way to manually pan the audio left or right. Assigning a sound to the PositionalAudio object gives me a panner object inside, but I cannot find any custom adjustments I can…
Chewie The Chorkie
  • 4,896
  • 9
  • 46
  • 90
0
votes
1 answer

image panning area

I'm developing a project in Actionscript 2.0. I have an image that pans. I followed this tutorial: http://www.kirupa.com/developer/flash8/interactive_image_pan.htm Now I want the image to pan just when the mouse is hover some movieclip instead of…
Tiago Castro
  • 835
  • 2
  • 10
  • 23
0
votes
0 answers

How to restrict the panning of the image within the bounds

I have an image and i am panning it after zooming, on panning horizontally, image gets moved leaving white space at the left. I want to restrict when the image left bounds has reached. Same thing for top, right, bottom panning. Panned image Expected…
0
votes
1 answer

How do i restrict panning and restrict zooming out of a certain area of apple maps in MapKit?

I am currently making an app with a map that should focus on a certain location only. I would like the user to not be able to zoom out or pan out of this area so they can keep their focus on the image overlay that i have put over this area. In…
0
votes
1 answer

How to adjust panning while zooming

I want to pan while zooming into a Mandelbrot set so that the fractal portion of the function stays within the window. The code outputs a series of png images to later be made into a video. Right now, I have the zooming and panning working but I do…
Ferko
  • 1
  • 4
0
votes
1 answer

Openlayers - Disable pan on a layer

I'm using OpenLayers and I'm trying to create an information overlay layer. I'm using my own WMS server, so for this layer, the server always send an image with informations in it. My problem is that when I pan the Map, my "information" layer also…
Michael Laffargue
  • 10,116
  • 6
  • 42
  • 76
0
votes
2 answers

UWP: SCrollViewer.ChangeView doesn't scroll if zoom factor is greater than 1

I added a ScrollViewer to my UWP app for Windows 10. I want to use it both for zooming and panning. Here is my XAML:
Cristiano Ghersi
  • 1,944
  • 1
  • 20
  • 46
0
votes
1 answer

d3.tree scrollbar instead of panning

I have a tree width d3.js. when tree overflows svg, it is hidden and I can view hidden parts by panning on tree. is there any way to add scrollbar for view hidden parts instead of panning? for example in this sample…
z f
  • 135
  • 2
  • 9
0
votes
2 answers

How to get panning control forma a .mp3 file?

I´m learning how to play sound in java but with advanced controls. I´ve found one problem: The javax.sound.sampled.AudioInputStream doesn´t support Mp3 files, and i´m running out of ideas to find how to get control of panning. I managed to play an…
Mango
  • 3
  • 1
0
votes
2 answers

SceneKit: move camera towards direction its facing with pan gesture

I have set up some custom camera controls in my SceneKit game. I am having a problem with my pan gesture auto-adapting based on the cameras y euler angle. The pan gesture I have works by panning the camera on the x and z axis (by using the gestures…
E. Huckabee
  • 1,788
  • 1
  • 13
  • 29
0
votes
1 answer

Cannot read property 'panTo' of undefined' Angular error

I want as I open a dropdown menu pan to a certain city on the AGM maps. I do this by making this method in the map component, and then calling it from the View: public move = () => { alert("Test"); const position = new google.maps.LatLng( …
Y_Lakdime
  • 825
  • 2
  • 15
  • 33