Questions tagged [gesture]
A gesture is a specific pattern of touch, cursor, or physical movement that may be recognized by an application to perform a specific task.
2,201
questions
0
votes
0
answers
20
views
How can I implement a swipe to change date in a watchOS app?
I have a view that looks like this:
struct ContentView: View {
@State private var list: [listEntry] = []
var body: some View {
NavigationStack {
VStack {
...
0
votes
0
answers
8
views
Flutter Auto Router package with back swap gesture
hey im using flutter auto router package in my app and i want to add the swap gesture to go back between pages,tried couple of things but nothing worked.
this is the main.dart
void main() {
runApp(...
1
vote
1
answer
21
views
Android - do a Path comparison
In the Duolingo app, there's a feature where you can learn to draw letters and validate them afterwards, as in the picture below.
I was curious as to what Android feature can be behind such ...
0
votes
1
answer
37
views
How to recognise 2 Drag Gestures simultaneously in SwiftUI
I want to recognise two drag gestures at the same time so I can respond to 2-finger pan and magnification gestures.
struct GestureTest: View {
@State var debug1 = ""
@State var ...
1
vote
1
answer
24
views
HasTappableComponents class in Flame flutter deprecated
The onTapDown method in GamePlayScreen doesn't seem to be triggered, and I can't figure out why. Any insights or suggestions would be greatly appreciated.
class FlyingCrowGameStart extends FlameGame ...
0
votes
1
answer
54
views
How do I pass gesture data to parent view and why do all my images drag together?
I am just a hobbyist trying to learn swiftui so I may not be even asking the right questions but here is the view I created to build a basic square grid that could be used for checkers. It works ...
0
votes
0
answers
54
views
Resolving Gesture Conflict in SwiftUI: OnDelete in List Not Working with Custom CardView Gesture
Description of the Issue:
I am facing an issue in my SwiftUI project where I have a List inside a custom SlideOverView. The List has an onDelete function for swiping to delete items. However, the ...
1
vote
0
answers
18
views
Gestures turns off for a moment after swiping back
After I press the button and go to another screen, and then go back with a swipe, and I try to press the button again quickly, it doesn't work. It seems to me that it turns on again after a few ...
0
votes
0
answers
15
views
How do I assign app priority for gesture controls?
I am using Windows 11 and I have my three-finger tap gesture set to "play/pause". It works for spotify as long as I don't have a video on youtube open at the same time. It assigns priority ...
0
votes
1
answer
29
views
Swiftui view flutters during drag
I am trying to enable drag and scale in the same view. I have noticed that the drag code must preceded the scale code.
My problem is that when the user drags, the view flutters. How can I fix this?
...
0
votes
0
answers
40
views
How to differentiate between horizontal scale, horizontal drag with one finger, horizontal drag with two fingers in Flutter?
I am doing a more complex custom chart requiring special treatment of three main actions:
user is scaling the widget horizontally (one finger going left, other finger going right)
user is dragging ...
0
votes
0
answers
39
views
How can I drag and zoom properly with SwiftUI?
I'm trying to implement a drag and magnification gesture on an image.
Seems very difficult to do with SwiftUI !
I managed to make it work, but I still have 3 problems that I can't solve :
...
0
votes
0
answers
35
views
Tap Gesture on top of Drag Gesture Not Working with SwiftUI on Apple Watch
I am running the view shown below on my physical Apple Watch Series 7 that has watchOS 10.0.1 installed. I am building the app with Xcode 15.
When the image is dragged below the Text with the blue ...
0
votes
0
answers
30
views
React on drag-down gesture and prevent reload
Intro: When visiting a website on a mobile device and the website is already scrolled to top, then you can drag the page further down (as with many apps) into "negative" space to reload the ...
6
votes
2
answers
489
views
How to fix UINavigationController extension which breaks SwiftUI Navigation in iOS 17
I have been using the following extension throughout iOS 15 and iOS 16 seemingly with no issues. For context, I implemented this in my project to offer the ability to retain the swipe-back gesture for ...
1
vote
0
answers
70
views
Play audio on swipe SAFARI IOS 17
I would like to play an audio buffer on a swipe gesture in Safari Mobile.
Seems Safari mobile iOS 17 dropped all support for unlocking audio on events other then a click event or touch (without ...
0
votes
1
answer
27
views
Non-destructive image cropping in react native; zoom and pan with bounds
My goal is to implement something like non-destructive image cropping, where the aspect ratio is maintained, in my React Native app. As a proxy for this, I thought I could allow the user to zoom and ...
0
votes
1
answer
41
views
Jetpack Compose: pointerInput launch 2 times
I've been trying to allow navigation between multiple pages with a swipe gesture, like for example on Instagram when swiping to get to the messages. For this, I've used pointerInput with ...
0
votes
0
answers
37
views
Getting touch location info from a container while allowing views in container to respond to those touches
In SwiftUI, I have a container view that I want to have capture touch locations but then allow views inside the container to still respond to those taps. Using .simultaneousGesture gets me part of the ...
0
votes
0
answers
37
views
How to get nodes of scene (SceneKit) by tap gesture in SwiftUI SceneView?
I am trying to use SceneKit in SwiftUI. SceneView makes many things easy without the need of the UIViewRepresentable but I cannot reach to the location information when I tap on the scene in the ...
1
vote
0
answers
30
views
React Native / Expo: how to disable press actions while swiping, like all apps in fact do
I have been working on an app for a while now, and I just can't figure out how to fix the following issue.
I have an horizontal scroll view:
<ScrollView
removeClippedSubviews={true}
...
0
votes
1
answer
105
views
SwiftUI: SwipeActions not working when tap gesture is used elsewhere, FocusState unreliable
In my iOS app, I have a VStack that consists of a view with a List and a view with a TextInput:
var body: some View {
NavigationView {
ScrollViewReader { scrollProxy in
...
0
votes
0
answers
60
views
Drag To Select Calendar in Android with Compose
I'm trying to implement drag to select dates in my custom Calendar in Android which I've built using jetpack compose.
Here's the rough structure of my compose calendar:
Here's the vertical scrolling ...
0
votes
0
answers
15
views
Flutter gesture bar - invisible tile content
I am having this phenomena with the gesture bar on the ios simulator.
The content inside the tile is cut out but the tile itself is visible.
Anyone an idea why?
Of corse, I want the content to be seen ...
0
votes
1
answer
79
views
How to prevent accidental history swipe back navigation with HTML games?
I am developing a website that has games on it. The website is also playable on mobile in Chrome, Firefox, and Safari.
They are canvas browser games where you use your finger to play the games.
...
0
votes
0
answers
28
views
Windows 11 with remote desktop gesture issue
I work on a laptop with touchpad with windows 11 pro by connecting to a computer with standard keyboard + mouse through windows remote desktop.
When I use gesture (i.e swipping 3 finger up) on my ...
2
votes
1
answer
157
views
How to implement three gestures at the same time in Swift?
I am building the SwiftUI app, where I need to rotate, place and resize signature in a view. I've implemented the last two gestures, but when I'm activating the last one, it's breaking everything. The ...
1
vote
0
answers
141
views
Dragging gesture issue in visionOS
Using visionOS and RealityKit:
I am attempting to place images in wall anchors and be able to move their position using drag gestures. This seem pretty straightforward to do if the wall anchor is ...
1
vote
1
answer
58
views
Flutter appbar with image, customized containers and tabbar
The screen and when scrolled. I have used dependency appbar_animated: ^0.0.3 for this effect, so when user scrolls then the image and my custom container which has info about the restaurant disappears ...
0
votes
0
answers
26
views
How to limit the pan gesture movement in swift
I am learning Swift and I have created the typical map background where you are able to put the things
Preview
I have added the pan gesture but I don't like how it works, because it move out of limits ...
0
votes
1
answer
105
views
What is causing dispatchGesture to fail?
I have an accessibility service defined as:
class ClickService : AccessibilityService() {
// Pretend the necessary methods are overrided
override fun onCreate() {
super.onCreate()
...
0
votes
0
answers
13
views
MatrixGestureDetector only works if gesture is started horizontally and not vertically?
I am using the matrix_gesture_detector package found here.
My problem is the package only seems to work if I'm interacting with it horizontally.
Here is the widget I've made as a wrapper around the ...
1
vote
1
answer
32
views
Is there a way to distinguish between left and right mouse pan in Flutter?
Is there a way in which I can distinguish between left button and right button panning in flutter?
I am using a GestureDetector with an onPanUpdate callback. However the details (PanDown/Update/...
0
votes
1
answer
52
views
combine cocoa uiview custom extension does not work
I don't know why my extension UIView tabPublisher does not work.
I read swift combine cocoa library. and wanted to make UIView extension.(Swift combine cocoa does not give about UIView extension. )
...
0
votes
0
answers
24
views
Why the UIView extension doesn't work using combine?
My Problem :
When I use UIView extension about Combine, It doesn't work.
But use TabGesture extension, it works.
I don`t know why..
UIGestureRecognizer file
When I do this, the publisher doesn't work....
2
votes
1
answer
160
views
Swipe Up & Down gesture on Launcher Application
I am working on an Android Launcher Application, but I am stuck with the Swipe Up & Down Gesture on the Home Screen. I am using RecyclerView to show the applications in Grid-Layout.
On Home Screen ...
0
votes
0
answers
114
views
Built-in Swipe Gesture in onDelete function of a List that is inside a TabView not working
I have a TabView with only to items, the TabView style is .page(indexDisplayMode: .never) so you can switch views using the swipe gesture. As expected no Bar is shown at the bottom:
enum TabItems {
...
0
votes
0
answers
81
views
Run code when TabView gesture begins and ends
I have a SwiftUI TabView, and I'm trying to run code when the TabView drag gesture begins, and when it ends.
In this code, "Drag gesture begins" prints, but "Drag gesture ends" ...
0
votes
0
answers
62
views
onTapGesture not opening the View
I am new in SwiftUI and I am trying to open a view when taping on an Image. so I used the code below:
var body: some View {
ZStack {
VStack() {
HStack(spacing: 0) {
...
1
vote
1
answer
72
views
`onLongPressGesture` minimumDuration parameter is ignored in SwiftUI
There's a problem with handling the long tap gesture. The idea is to have a both short and long tap on the same view inside LazyVGrid. The long tap timing still seems to be 0.5 second which is too ...
0
votes
0
answers
10
views
Lost volumne down + power button function to take a screenshot
My moto gesture app has removed the lost volumne down + power button function to take a screenshot. I have searched the settings menu for half an hour, read online for half an hour, installed 3th ...
0
votes
0
answers
134
views
React Native - Long press and pan/swipe to select element
I was trying to create a longpress and swipe/pan to focus/select element.
import React, {useState} from 'react';
import {
View,
StyleSheet,
Text,
ViewProps,
TouchableOpacity,
} from 'react-...
0
votes
0
answers
16
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
0
answers
32
views
Flutter: callback when user drags into a widget
I want to play another piano note when the user simply drags their fingers on it.
Currently, I am using Listener with onPointerMove, But it is not perfect for what I need.
onPointerMove is Called when ...
0
votes
0
answers
36
views
Button on top of TabView (carousel page style) — gesture issue
I have a ZStack, containing a TabView (page carousel style) with images. On top of that, there is a button. The button is not working (neither of the print statements below output). I think this is ...
0
votes
0
answers
130
views
Disabling Touch Gestures in Windows Form Application
I am struggling a lot with disabling touch gestures for my application.
Idea is to make it possible to hold the button (fire Mouse Down and Mouse Up events).
Default behavior is a "Press and Hold&...
0
votes
0
answers
33
views
onTapDown event is not triggering in touchable library flutter
Based on the issue issue 47 I implemented the way they mentioned but still I'm not able to fix the issue
The below code is my implementation of flutter touchable library
// ignore_for_file: ...
0
votes
0
answers
51
views
Check number of touches in hitTest - Swift
In my app I have two views, one on top of the other. One of them should receive pinch gestures and, when that gesture is active, also pan gestures. The other, the one below, has to receive pan ...
0
votes
0
answers
78
views
Detecting the popping of a modal when the user performs a back gesture in MAUI Android app (MVVM structure)
I am developing a MAUi Android app using the MVVM structure, and I'm facing difficulty in detecting when a modal is popped due to a back gesture performed by the user.
In my app, I have implemented a ...
0
votes
0
answers
78
views
SwiftUI: Limit Increment/Decrement of an Integer Value in DragGesture
I am working an iOS prototype using SwiftUI and I'm currently working on implementing a circular joystick-like UI that controls a timer. The functionality I'm aiming for is as follows:
As the user ...