Questions tagged [pinchzoom]

Gesture which allows the user to zoom in by moving two fingers closer together while touching the display.

pinchzoom
Filter by
Sorted by
Tagged with
2 votes
2 answers
1k views

How to keep default browser behavior (zoom) on pinch with Hammerjs?

I use Hammerjs for swiping and tapping. However as soon as I start using it on any element var hammer = new Hammer(document.getElementById("square")); the default browser's behavior for "pinch" ...
0 votes
2 answers
21 views

How to implement pinch to zoom and camera preview kotlin

I have a camera I'm trying to create in my app that allows users to pinch the preview screen when using the camera. I've been trying to implement pinch to zoom in my camera, but I am having no luck at ...
85 votes
18 answers
47k views

Isn't there an easy way to pinch to zoom in an image in SwiftUI?

I want to be able to resize and move an image in SwiftUI (like if it were a map) with pinch to zoom and drag it around. With UIKit I embedded the image into a UIScrollView and it took care of it, but ...
0 votes
0 answers
41 views

SwiftUI - zIndex change not working for item inside of LazyVStack

I have problem with zIndex in my app with collection of images I've added pinch zoom to the image, but when image is zoomed it does not get on top of other images which are next in the collection. ...
-1 votes
2 answers
80 views

onScaleEnd received prematurely

I am working on a feature in my app that does zoom-in and zoom-out. I have noticed that when I do zoom-in, then my app receives onScaleEnd() even though both my fingers are still on the screen. ...
0 votes
0 answers
9 views

Layout breaks on zoom in with "cmd +" but not with zoom in with mousepad

My simple portfolio site breaks when I zoom in, when I zoom with the mousepad nothing happens, it only breaks when I zoom with "cmd +" Any idea? Here's the repo Whats the technical ...
1 vote
3 answers
868 views

Android Pinch Zoom on editText

Is there any way to add pinch zoom in zoom out on edit Text?
1 vote
1 answer
108 views

How to zoom and pan image in ScrollView

I'm dealing with zoom&pan topic in my SwiftUI app. I use following View struct to display image struct PictureDetailView: View { @State private var zoom: Double private var image: NSImage private ...
1 vote
1 answer
5k views

How to use “viewport-fit=cover” and “maximum-scale=1” without disabling zoom on Android

I’ve been using the following viewport meta tag on my site: <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, viewport-fit=cover" /> On ...
6 votes
3 answers
9k views

reanimated version problem (couldn't determine the version of the native part of Reanimated.)

I am trying to practive this video. https://youtu.be/R7vyLItMQJw (The basics of PinchGestureHandler with React Native Reanimated 2) but my app doesn't work touch. I get this Error [Reanimated] Couldn'...
1 vote
1 answer
58 views

UIScrollView automatically scrolls UIImageView to top on pinch-to-zoom

I'm having issues with UIScrollView when doing pinch-to-zoom UIImageView. Implementation is relatively simple which you can find in many places on the Internet. Double tap to zoom in and out works ...
1 vote
1 answer
87 views

How to tap to zoom an image like in instagram? Kotlin

I am trying to get a similar functionality to Instagram, when you tap or pinch on an image, and now the image covers the screen above all the other views, like this I have a Fragment with 3 images ...
4 votes
2 answers
2k views

Zoom Qt3D's Camera

How to implement two-finger pinch gesture handling for Qt3D Camera's FOV? There are FirstPersonCameraController and OrbitCameraController camera controllers which handles mouse/touch pad events. The ...
0 votes
1 answer
68 views

How to acces to a View under a View

I'm a beginner in Android, I have a frameLayout which contains Draw view on top and ImageView (using PhotoView) on the back so I can draw on it. I want to add a feature to my ImageView so I can zoom ...
0 votes
0 answers
36 views

Set minimal scale and rectangle as bounds for Matrix in Android

I'm trying to write pinch-to-zoom for a custom view. I have trouble to set outer bounds and minimal scale factor for a matrix. What I currently have in my gesture detector: override fun onScale(...
0 votes
0 answers
25 views

How to zoom-in on a particular latitude and longitude. Whenever we pinch zoom in-out then pin is dislocated slightly

Whenever we try to zoom-in or zoom-out on a particular location (lat,long) then it never sticks to that location and shifts slightly here and there. We want to achieve similar functionality that ...
0 votes
0 answers
23 views

SwiftUI scrolling is restricted to certain part

I want to zoom a video and also scroll after zooming in. But once I zoom in it only allows me to zoom according to the scale of my pinch gesture @objc private func pinch(gesture: ...
1 vote
2 answers
1k views

How to pinch zoom Android emulator embedded in Android Studio IDE (2020)

It seems to work by pressing ctrl and left mouse in normal emulator but since Android 4.1.1, the emulator can be embedded into the IDE, I could not perform pinch zoom. Any help! Thanks.
2 votes
4 answers
4k views

Zoomable TextView in ScrollView

I would like to make a TextView that can change the size of it's text based on pinch zooming. The TextView is inside a ScrollView. I've got the TextView to zoom when pinching BUT only when you move ...
108 votes
16 answers
112k views

How to pinch zoom on Android emulator?

I have an application in which I need to implement image editing, which also includes pinch zooming. I am done with pinch zooming but I can test this only on device, not on emulator. Is there any ...
3 votes
1 answer
1k views

ScaleGestureDetector doesnot work over recyclerview

I have a project where I need to zoom a RecyclerView using ScaleGestureDetector. It works while pinch zooming outside of the RecyclerView but doesn't work on pinching over RecyclerView. I have been ...
3 votes
2 answers
899 views

Android emulator pinch to zoom anywhere on screen (mac OS)

I have already looked at How to pinch zoom on Android emulator? but haven't found specifically how to pinch zoom on any part of the screen via emulator. I'm on mac OS so I know I can hold Command ⌘ ...
0 votes
0 answers
61 views

How to make a zoom with two fingers in android?

I would like to implement zoom, let's say ImageView with two fingers. The most important thing is that the ImageView increases to a point located between the fingers (let's say as a zoom of a picture ...
162 votes
9 answers
102k views

How to pinch out in iOS simulator when map view is only a portion of the screen?

I have a view on the iPad that I'm adding an MKMapView to that is say half the height of the full screen. However, when I try to pinch out on the iOS Simulator it doesn't work since the to nubs fill ...
9 votes
1 answer
851 views

React-Native Pinch Gesture Handler Zoom Position

I have a Pan gesture handler inside a Pinch gesture handler to create the effects of multi-directional scrolling zoomable view that is all working well. But I am having issues where when users zoom in,...
0 votes
0 answers
60 views

Nextjs13 Google Maps Pinch to zoom

I have a NextJs 13 app and I've added Google Maps (using @react-google-maps/api, also tried with api from google, @googlemaps/js-api-loader). No special settings are made just: center: { lat: ...
0 votes
1 answer
753 views

How to zoom camera on pinch on react native?

I'm building a RN app using Expo, which uses expo-camera's Camera component. I'm trying to implement zoom on pinch functionality, which basically is computing a number between 0 (no zoom) and 1 (max ...
1 vote
2 answers
2k views

React Native Gesture Handle PinchGestureHandler Text Component

So I'm trying to implement a pinch to zoom on a Text component in React Native and I can't seem to understand the documentation, and most other posts are about making an Image Zoomable, I tried to ...
0 votes
1 answer
103 views

Tkinter pinch-zoom

I have a program, that draws a canvas that is scrollable and has a gray grid on it. I need to add pinch-zooming to support MacBook touchpad. I would like to add pinch-zooming functional to my canvas. ...
0 votes
0 answers
29 views

Is there way to implement a pinch-off zoom functionality with touch event in android?

I have a load static image in image-view layout & I want to implement pinch-off zoom functionality with touch-event for particular image? In google map having similar kind of functionality and In ...
0 votes
0 answers
56 views

How to add pinch zoom in/out to Android Studio ImageView?

For a while now, I have been struggling with adding zoom in/out to my images in Android Studio Kotlin project. I have tried numerous things from different sources and nothing worked. Does anyone have ...
1 vote
0 answers
192 views

How to add zoom in/out to an ImageView in Android Studio?

I have been attempting to add a zoom in/zoom out to my ImageView in Android Studio app, so that I can pinch or double tap in order to activate the zooming in/out. Lately I tried using Zoomy library, ...
0 votes
0 answers
12 views

How to horizontally zoom a HorizontalScrollView which scrolls both Vertically and Horizontally

I have a custom HorizontalScrollView Which I am able to scroll both Vertically and Horizontally, I want to zoom it Horizontally public class MyHorizontalScrollView extends HorizontalScrollView { ...
0 votes
0 answers
28 views

How can i attach a matrix to an image in react native?

I'm starting a new proyect and i don't know how to aim my solution properly so i hope somebody can enlighten me. The proyect consist on a shopping mall map (an image), where there's gonna be location ...
9 votes
1 answer
2k views

Jetpack Compose Intercept pinch/zoom in child layout

I want to have a box with colums of rows filled with further children that accept clicks ("CL") and long clicks ("LO") to be zoomable and draggable. Using pointerInput with ...
1 vote
1 answer
1k views

Xamarin - Pinch to zoom not working in IOS. working fine on Android

I have used the code posted here by SebasianKruse https://forums.xamarin.com/discussion/74168/full-screen-image-viewer-with-pinch-to-zoom-pan-to-move-tap-to-show-captions-for-xamarin-forms/p2 to be ...
2 votes
0 answers
355 views

GTK3+ How to handle touchpad zoom gesture?

I want to get TOUCHPAD pinch zoom gesture from GTK. (I'm using Gnome 3.38 on Wayland, and gestures work well) GTK Version: 3.24.29 I have this Vala code but it doesn't work: using Gtk; using Gdk; ...
1 vote
0 answers
48 views

how to implement Zoom View by PanResponder in react native

I want Implement Zoom View by PanResponder in react native i just want to use React native Animated API and PanResponder API. Thanks so much I want to implement a view Component , that view can use 2 ...
3 votes
2 answers
15k views

Zooming in unity mobile

I'm trying to zoom in and out in my game with a zoom limit. I'm using this code to scroll and pinch but I didn't figure out how to limit the zoom distance (minzoomlimit and maxzoomlimit). I mean when ...
0 votes
0 answers
21 views

How to add relative zoom to ZoomGestureHandler in python

I am currently working on implementing a custom zoom gesture in Python for my mobile graphics library. Despite trying multiple solutions, including exploring ChatGPT, I encountered an issue with the ...
0 votes
1 answer
676 views

How to support wide angle zoom using CameraX API?

I have an app where I use CameraX to create a custom camera. Currently only default back camera is supported but I need to access wide angle lens now to provide zoom out below 1.0. I have seen lot of ...
5 votes
3 answers
5k views

webview inside the listview: Touch events conflicts Hence unable to pinch Zoom IN/OUT in android

I have a custom listview which is filled with webview. I want to use the pinch zoom in/Zoom out for my webview. But i m not getting the pinch zoom in/out flexibly when i m pinching the webview it is ...
0 votes
1 answer
79 views

Android studio : issue using Zoom & scrollview together

I use this code to pinch zoom screen then it works fine. But when i add scrollview in XML then scroll view works fine but pinch zoom screen doesn't work any more. actually i need both features my ...
12 votes
3 answers
2k views

Scale of UIPinchGestureRecognizer in horizontal and vertical directions separately

When using UIPinchGestureRecognizer what is the best way to detect/read the pinch scale in horizontal and vertical directions individually? I saw this post UIPinchGestureRecognizer Scale view in ...
0 votes
0 answers
256 views

Pinch zoom is not working well... It's also translating the image

I'm building an image color picker with pinch zoom and pan with JS Vanilla. I'm almost good but I still have some issues with : The pinch zoom behaviour : When I pinch zoom, it's also translating. I ...
0 votes
0 answers
37 views

How to zoom only the pinched region in a 3d model and not the model as a whole in scenekit using swift

This is my code for handling pinch. This only zoom the whole model in its pivot even if we pinch in a specific region. I want to pinch zoom only in the selected area of model.How to achieve this? Even ...
1 vote
1 answer
996 views

ngx-pinch-zoom for Angular 14

Is there any way to install ngx-pinch-zoom for Angular 14? Of course there is a peer dependency conflict and installing pinch-zoom with --legacy-peer-deps works in project but failed on the ci/cd ...
1 vote
1 answer
31 views

Is it possible to restrict "pinch and zoom" in echo3D webAR experience?

I'm using echo3D to showcase 3D models for a client but I am wondering if/how it's possible to limit how viewers interact with the WebAR experience? Can I turn off “pinch and zoom” and restrict ...
1 vote
1 answer
397 views

Problem with Sfmap in flutter when zoom in and zoom out

I'm having problems with sfmaps, what happens is that when I zoom in and zoom out if I scroll the screen while the map is loading, the map gets out of control and jumps to a distant location. I have ...
0 votes
0 answers
143 views

Location of pin is changing while zoom in/out in flutter

I'm facing an issue while zooming the map. The pin's location is changing when I zoom. I've used google_maps_flutter plugin. App's requirement is to select place and show pin. The pin is showing ...

1
2 3 4 5
15