pinchzoom

Drag and drop with pinch zoom doesn't work as expected

半世苍凉 提交于 2020-12-16 04:37:41
问题 In the zoomed mode for pinch-zoom the drag doesn't align properly with the mouse pointer. I've detailed the problem here:https://stackblitz.com/edit/angular-t7hwqg I expect the drag to work same way irrespective of the zoom. I saw in version 8 of angular material they have added @Input('cdkDragConstrainPosition') constrainPosition: (point: Point, dragRef: DragRef) => Point, which will solve my problem as in the zoomed mode I can write a custom logic to map the drag properly with pointer, but

Drag and drop with pinch zoom doesn't work as expected

扶醉桌前 提交于 2020-12-16 04:37:35
问题 In the zoomed mode for pinch-zoom the drag doesn't align properly with the mouse pointer. I've detailed the problem here:https://stackblitz.com/edit/angular-t7hwqg I expect the drag to work same way irrespective of the zoom. I saw in version 8 of angular material they have added @Input('cdkDragConstrainPosition') constrainPosition: (point: Point, dragRef: DragRef) => Point, which will solve my problem as in the zoomed mode I can write a custom logic to map the drag properly with pointer, but

Disable pinch zoom on IOS 13 safari

烈酒焚心 提交于 2020-08-09 07:02:42
问题 I know this question has been asked so much. But have there been any updates on being able to disable pinch zoom on the latest version of safari? I have a map application that implements pinch to zoom on specific elements of the webpage (the map). I want users to be able to zoom in on the map, while the UI around the page stays the same. This has destroyed my users experience on IOS. Is there a way to at least disable pinch to zoom on specific elements? Here is my webpage so you can see

How to pinch zoom in/out Text using two fingers?

早过忘川 提交于 2020-05-16 21:35:47
问题 I'm creating a text field like Text or RichText. And after that, I want to zoom in/out the size of text using pinching. For now, I tried implementing GestureDetector but it zooms in/out with one finger too. And it is really hard to aim pinching detection. Sometimes is freezing. I add video when after pinching freeze and suddenly get bigger. The second video is with the case that image zoom in only when I tap on the text with one finger and move to up left corner. The ideal implementation is

How to pinch zoom in/out Text using two fingers?

风流意气都作罢 提交于 2020-05-16 21:35:41
问题 I'm creating a text field like Text or RichText. And after that, I want to zoom in/out the size of text using pinching. For now, I tried implementing GestureDetector but it zooms in/out with one finger too. And it is really hard to aim pinching detection. Sometimes is freezing. I add video when after pinching freeze and suddenly get bigger. The second video is with the case that image zoom in only when I tap on the text with one finger and move to up left corner. The ideal implementation is

How to pinch zoom in/out Text using two fingers?

老子叫甜甜 提交于 2020-05-16 21:35:09
问题 I'm creating a text field like Text or RichText. And after that, I want to zoom in/out the size of text using pinching. For now, I tried implementing GestureDetector but it zooms in/out with one finger too. And it is really hard to aim pinching detection. Sometimes is freezing. I add video when after pinching freeze and suddenly get bigger. The second video is with the case that image zoom in only when I tap on the text with one finger and move to up left corner. The ideal implementation is

how to zoom in/out with button click images

允我心安 提交于 2020-02-02 17:33:52
问题 I am new to android. I am working on project in which I have an image view and 2 buttons and 10 images in drawable. With button cliks images are changing perfectly but I dont know how to zoom these images. I applied most of the methods of pinch zoom in it but remained unsuccessful. Plz help with code.Especially in main java. Main java Public class MainActivity extends Activity { Private ImageView hImageViewPic; Private Button iButton, gButton; Private int currentImage=0; Int images []={R

Scale of UIPinchGestureRecognizer in horizontal and vertical directions separately

女生的网名这么多〃 提交于 2020-01-22 13:48:06
问题 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 different x and y directions but I noticed there were so many going back and forth for such a seemingly routine task that I am not sure that is the best answer/way. If not using UIPinchGestureRecognizer altogether for this purpose is the answer, what's the best way to detect pinch scale in two

Pinch zoom on SurfaceView

一曲冷凌霜 提交于 2020-01-21 06:44:06
问题 I'm trying to implement pinch zoom on a SurfaceView . I've done a lot of research regarding this and I found this class to implement pinch zoom. Here is how I modified it: public class ZoomLayout extends FrameLayout implements ScaleGestureDetector.OnScaleGestureListener { private SurfaceView mSurfaceView; private enum Mode { NONE, DRAG, ZOOM } private static final String TAG = "ZoomLayout"; private static final float MIN_ZOOM = 1.0f; private static final float MAX_ZOOM = 4.0f; private Mode

Scale at pivot point in an already scaled node

孤街醉人 提交于 2020-01-09 09:05:52
问题 I'm trying to create an application with a zoomable/pannable canvas. Features : zoom in/out with mouse wheel at pivot points drag nodes around on the canvas with left mouse button drag the entire canvas with right mouse button The zooming at the pivot point works as long as you start the zooming at scale 1. Position the mouse over a grid point and scroll the mouse wheel. The pivot point will remain where you started zooming. Problem : When you zoom in, then move the mouse to another point and