panning

How do I incorporate speed and/or acceleration into a (WPF) scrollviewer?

I have a WPF scrollViewer that I use for panning (MouseDown, MouseMove, MouseUp) and I would like to include an acceleration effect that incorporates inertia. So, if the mouse moves beyond a threshold speed and I release the mouse, it continues to pan but slows down as a function of the initial speed. Any ideas, thoughts or examples? ...

iPhone SDK: Panning audio at different levels

Hi! I am trying to control the channel (left/right) and its volume from which the audio file is played. It will be great if someone can explain how this can be done or point me to some document or tutorial which explains this. Thanks a lot! ...

Panning Image Using Javascript in ASP.Net Page Overflows Div

I have an ASP.Net page that contains a <div> with an <img> tag within. The image is large so the <div> is set with a size of 500x500 pixels with overflow set to scroll. I'm attempting to add image panning using a click and drag on the image. However, every time I begin dragging the image escapes the boundary of the element and consumes...

IE Problem: Jagged Scrolling and Dragging Inside Large Viewport

My site is a single page website with a very large "canvas" size. and to navigate around the site i'm using jquery scrollTo and jquery Dragscrollable plugin. in IE 7 & 8 the scrolling/dragging movement is very jagged. at first i thought it was my script or some other plugin that's causing this. but after i stripped down everything it's ...

How do I pan the contents of a div when the right mouse button is dragged?

I need a cross browser way of capturing the right mouse click, preventing the default context menu and making it where when the user drags the mouse they can pan the contents of a div. This is largely similar to Google maps in that they will grip the contents and drag to see what they want. No external libraries please. I am already...

Best way to pan & scan images with jquery

Hello, I am trying to make an image pan & scan system. I have a slider that zooms the image (that can be dragged) and also a small map in the corner of the image (that can also be dragged). You can see a rough example here (sorry, I am not allowed to use the design, so it's not formatted): http://lighe.madetokill.com/test/test.html My ...

drag to pan on an UserControl

Hello, I'm trying to build my own "PictureBox like" control adding some functionalities. For example, I want to be able to pan over a big image by simply clicking and dragging with the mouse. The problem seems to be on my OnMouseMove method. If I use the following code I get the drag speed and precision I want, but of course, when I re...

How to set panning area after rotating image using matrix in FLEX

Hi, I am working on a image editing tool where user can pan / rotate and zoom the image. I am using Matrix to apply rotation and zooming effects. Now the probelm is that if image is not rotated, its panning works perfectly. But once the user rotates it, panning functionality goes for a toss. Here's the line of code i am using to drag (p...

how to implement two fingers panning like safari broswer?

hi all i try to implement panning and zooming functionality like safari browser in ipad. i used UIPinchGestureRecognizer for zooming with two fingers touch. but i dont know how to implement two fingers panning. when i touch with two fingers its tap count is 1. please help. thanks in advance. ...

Distinguish between panning and normal screen modes in code - Windows

Hello. I am writing a full-screen 3D game and I have created a menu in which the user may select the screen resolution to match his hardware capacity. I am enumerating all the available screen modes with EnumDisplaySettingsExA like this : std::vector<DEVMODEA> modes; DEVMODEA modeInfo; int modeNum = -1; while (EnumDispl...

Translate a WPF canvas at high scale factors isn't smooth away from origin

Imagine you have a canvas that you want to scale to a very high value and then allow "panning." A good example is a geographic tool that needs to allow panning with "zoom" levels from the extent of the whole earth down to the extent of a few meters. I've found that if you are scaled in to more than, say 500,000, translating becomes ver...

What is the grab-command (leftMouseButton) for QGraphicsView.ScrollHandDrag

Hi, you can enable mouse dragging by setting setDragMode(QtGui.QGraphicsView.ScrollHandDrag for QGraphicsView. Then you can drag the QGraphicsScene by holding the leftMouseButton. But I want to drag with the middleMouseButton not leftMouseButton. How can I do that? I tried setCursor(QtCore.Qt.ClosedHandCursor) but it isn't working. Ha...

UIScrollView Vertical Pan Snapping to top or bottom of view

Hi Guys, I have an image that is 320x480 and upon orientation change this image obviously hangs out of view. There are some images where the focal point of it sits with it's bottom cut off (which isn't undesirable). My issue however is when the user pans vertically to see the full image, the view appears to snap to the bottom meaning th...

JavaScript Panning on ASP Image

Hey guys, got a little problem here. I tried to implement some javascript, which should add some client side functionality to an ASP Image component. Actually this image component is one of the DevExpress component, called "AspxBinaryImage". It's just a little modified ASP Image, with some more CSS and stuff, but the base is still just ...