2,731 questions
0
votes
0
answers
49
views
Implement ScaleGestureDetector and Listener in Android Studio using Kotlin and SceneView
I am working on a "simple" Android augmented reality application. I’m very new to Android programming, although I’ve been in software development for decades, particularly Python, and C/C++ ...
1
vote
1
answer
69
views
Swift charts - scrolling does not work while using .chartXSelection (or) .chartYSelection modifiers
I also tried using the .chartOverlay modifier and used the .onTapGesture modifier to get the point and the value. But the view, as expected, blocked the chart and thereby restricted the chart scroll ...
0
votes
0
answers
41
views
React native: Touches are not working for positioned absolutely Animated.View on Android
image showing the ui layout for this code:
<Animated.View className="flex-1 items-center justify-center bg-red-600">
<Animated.View className="h-40 w-48 bg-green-800">...
2
votes
1
answer
242
views
iOS26 `onTapGesture` when applied to a Map does not respond
When a onTapGesture is applied to Map the gesture does not respond in iOS26.
e.g
import SwiftUI
import MapKit
struct ContentView: View {
var merp: String {
if #available(iOS 26.0, *) ...
3
votes
0
answers
46
views
"W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1" warnings keep filling the terminal
When I use a normal GestureDetector I get my terminal filled with warnings on the motion event, such as this:
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
Specifically,...
1
vote
0
answers
25
views
Image Scaling and Pan/Zoom Issues in Dynamically Resizable Panes [duplicate]
I am developing a "Comic Book Editor" application where users can add photos to vertically split panes and dynamically resize these panes using a draggable divider.
I am facing significant ...
0
votes
0
answers
35
views
Drag & Drop "findDOMNode is deprecated" warning
I'm working on an Expo-managed React-Native for Web app and I'm trying to get some specific drag & drop functionality to work. I've tried a variety of changes to DraggableWord but everything I do ...
0
votes
0
answers
48
views
Avalonia touchpad gestures on Windows
Using Avalonia touchpad gestures on Windows. Of these, only the DoubleTapped works.
_grid.AddHandler(Gestures.PointerTouchPadGestureRotateEvent,Rotate,RoutingStrategies.Bubble);
_grid....
1
vote
1
answer
98
views
Gesture.Tap crashes the app on setting local state
Below I have a very simple component. The goal is to make sure that this component does not eat gestures of the parent component (such as pan and zoom). This is why the initial state is a just a View ...
0
votes
1
answer
26
views
How to resolve this bug: RequestFocus doesnt work in flutter
I have a problem that when I enter a page the keyboard is displayed for a second and then hidden, what could this be related to?
@override
void initState() {
super.initState();
WidgetsBinding....
2
votes
0
answers
121
views
pan gesture behaves differently in android vs windows
I have one PanGestureRecognizer per element to drag each element on the screen, on windows it behaves as intended but on android theres an issue when there are multiple active touches.
The desired ...
0
votes
0
answers
71
views
How to reliably calculate a zoom factor from WM_GESTURE/GID_ZOOM
The usual examples of how to calculate a zoom factor for WM_GESTURE/GID_ZOOM do not seem to work in practice.
I'm trying to implement pinch-to-zoom handling using WM_GESTURE with GID_ZOOM in a Win32/...
0
votes
1
answer
59
views
Is there a way in Flutter to detect which part of a Widget was pressed?
Is there a way in Flutter to detect which side of a button is pressed? For example, in the attached image, is it possible to tell when the '5' button is pressed whether the user pressed their finger ...
0
votes
0
answers
48
views
Simulate touch event with dispatchGesture in context of floating buttons
I am developing an auto-clicker application for Android. I have already managed to create floating buttons etc. Now I am trying to simulate a touch event.
My code of service looks as below:
class ...
7
votes
1
answer
827
views
'mouse_tracker.dart' Assertion Failed - '(event is PointerAddedEvent) == (lastEvent is PointerRemovedEvent)'
When mirroring a device using scrpy, anytime I scroll or pass the mouse cursor through widgets that have hover animations, it throws these exceptions, I've a found an open issue on Flutter github but ...
0
votes
0
answers
56
views
Touch event does not work on flutter with ios
The problem is that those elements that are next to the app bar do not work when pressed on iOS devices with Dynamic Island, for example, on the iPhone 14 everything works, but on the 14 Pro it does ...
0
votes
2
answers
243
views
How to detect and pass data in previous screen for Swipe-to-Go-Back Gesture in Flutter App Navigation
This works perfectly when the user clicks on the back button in the app bar. In Android devices, when the user performs a swipe-to-go-back gesture from the right edge of the screen, not able to return ...
2
votes
1
answer
182
views
How to detect whether a SwiftUI gesture failed?
In the following example if only the long press will be performed, there is (apparently) no (built-in) way to find out that the drag gesture had failed (if I just lift my finger off the screen for ...
0
votes
1
answer
156
views
How to prioritize a drag gesture over a ScrollView's default scrolling in SwiftUI?
I am working on a SwiftUI view where I have a ScrollView containing multiple items, and I want to include a draggable subview within it. My goal is to ensure that the drag gesture for the draggable ...
1
vote
1
answer
160
views
Custom snap gesture in visionOS
I’ve been developing a snap gesture for my app. While it works, it’s inconsistent and activates mistakenly.
Per Wikipedia, a snap occurs when tension is created with the index, middle, or ring finger ...
1
vote
1
answer
896
views
Simultaneous Gestures not Working on iOS 17
I am currently working on a settings menu and was hoping to use SwiftUI for it. It has all been working swimmingly until recently I tested it on an older iOS version, 17.5 and 17.7 and then the ...
6
votes
5
answers
1k
views
Disable Interactive Dismissal of Navigation Transitions in SwiftUI
I am using the new navigationTransitionStyle(.zoom(id, namespace)) to zoom from a view preview to a detail view in my swiftUI app.
My issue is that I have a snapping scrollView in the detail view, ...
-1
votes
1
answer
62
views
Is there any way to successfully combine a ScrollView with drag gestures in SwiftUI?
I would have thought this was trivial to do in SwiftUI, but apparently not.
Imagine a list of Items, each with some text in, within a ScrollView or something which scrolls (VStack maybe). The list ...
0
votes
4
answers
817
views
How to prevent app from closing on swipe back
In a screen of my flutter app I have some buttons that allow me to open new pages, created with the following code:
@override
Widget build(BuildContext context) {
return ElevatedButton.icon(
...
1
vote
0
answers
206
views
Tapping, ChartGesture, and onTapGesture is not always working on Bar Chart
The bar chart works fine and so does the animation and all is well. The only problem I'm facing now is that the bars are not always clickable, sometimes it works and sometimes it doesn't. I have been ...
0
votes
1
answer
163
views
Drag Gesture to connect Circles in SwiftUI
I'm trying a POC to implement dragging between circles (similar to the Android pattern lock screen back in the day) but in SwiftUI and I'm learning how to use DragGestures() to achieve this.
I started ...
1
vote
1
answer
396
views
How to disable 3 finger system gestures in app?
I have a multitouch piano app, and some users have apparently the 3 finger screenshot gesture enabled on their device. (It seems not available in Pixel's Android, but I did see it in Redmi phone).
Now,...
1
vote
0
answers
69
views
React Native: Prevent Swipeable from Blocking Horizontal Tab Swipes in TabNavigator
I'm building a screen in React Native that contains a list of Swipeable cards, where each card can be swiped to the right to reveal actions. However, this screen is part of a TabNavigator, and the ...
1
vote
0
answers
33
views
ModalNavigationDrawer ignores PointerInputChange
Look at the following GIF. When the checkbox is checked, the green area (Column in MaxBox) detects swipes from right to left. Each such swipe increments the counter by one. When the checkbox is ...
2
votes
0
answers
224
views
In SwiftUI is it possible to use both .onDrag and .gesture(DragGesture()) simultaneously?
I have an item view that has a .simultaneousGesture(DragGesture()) modifier on it to handle dragging the item around a Canvas and updating its x and y position. I also want to add an .onDrag modifier ...
0
votes
1
answer
374
views
How can I disable Windows system-wide three/four-finger touch gestures in a Win32 application? [closed]
I'm working at a company which develops an application which can be used for drawing with multiple touch inputs at once. The problem is, when you swipe with three or four fingers upward or downward, ...
2
votes
0
answers
290
views
Swiftui Image - Magnify and Drag simultaneously with two touches
Setting simultaneous gestures with MagnificationGesture and DragGesture do not work together since drag gesture works on single touch and magnification works on two touch. I am either able to magnify ...
0
votes
1
answer
318
views
How to swipe forwards or backwards through an array using the fling gesture
I have a list of items that I want the user to be able to swipe through using the fling gesture. When the user swipes up or right they will move forward to the next item (1, 2, 3, etc). When the user ...
0
votes
2
answers
595
views
Flutter `GestureRecognizer` that only responds to two-finger gestures
How do I create a GestureRecognizer in Flutter that only responds to two-finger gestures, and passes single-finger gestures on to other widgets in the arena?
In my Flutter app, I have a GoogleMap ...
2
votes
0
answers
593
views
Jetpack Compose ModalNavigationDrawer with SwipeToDismissBox disables the gesture for opening nav drawer
Is it possible to have a LazyColumn with a SwipeToDismissBox also work correctly within a ModalNavigationDrawer?
I have a basic composable with a ModalNavigationDrawer that has a LazyColumn within it.
...
1
vote
1
answer
874
views
SwiftUI Rotation using drag gesture
I try to rotate Model3D for Apple Vision Pro with a DragGesture.
To do it I just add degrees to an Angle object, and it works fine but it only rotate left or right not both.
So I've been able to ...
2
votes
1
answer
331
views
Cannot mix gestures with react-native-reanimated-carousel and react-native-gesture-handler
When migrating from a custom carousel to react-native-reanimated-carousel, I aimed to integrate additional gestures with the new <Carousel /> component provided by the library, but encountered ...
1
vote
1
answer
195
views
Gestures, Kotlin Android Studio
I make the calculator in Android Studio, Kotlin. I want mathematical operator buttons to be pressed during swaps, but they don't work
In MainActivity.kt:
private lateinit var lSwipeDetector: ...
0
votes
1
answer
73
views
What gesture is used to move in a 3D game on visionOS?
We can use keyboard's arrow keys to move any direction in immersive space while running on a visionOS simulator. But how can we achieve the same on real device?
2
votes
0
answers
819
views
UI freezes on tap of an item inside ScrollView: "Gesture: System gesture gate timed out."
I'm trying to implement a feed of flash cards using SwiftUI.
So I create a ScrollView and populate flash cards inside this ScrollView.
My intention is to be able to go to the next card by vertical ...
0
votes
0
answers
75
views
Why is my Swiped card not getting displayed again after all the overlapped cards above it gets swipped in android?
So, I have created a Overlapping Cards, for example there are 3 Cards A,B,C one above the other in following shown below in screen. So, Card A is at the top followed by B and C. What I want to do is , ...
0
votes
1
answer
121
views
.net v8 MAUI: How to display an image at last tap location?
Using .net8 MAUI for iOS, I display an image in an iOS App. It has some "hot zones", which are invisible buttons. They will trigger some kind of action (e.g. raising the score).
I want to ...
-1
votes
1
answer
74
views
run RTK dispatch on gesture start with React Native
this is my code:
import {
Button,
FlatList,
NativeSyntheticEvent,
Text,
TextInput,
TextInputFocusEventData,
View,
} from "react-native";
import { MissionStoreType } from "....
0
votes
1
answer
177
views
Is there a way to make a button have two separate actions depending on if it’s been tapped or long pressed? [duplicate]
I’m trying to make a button in Swift and make it so it does two separate actions depending on if you’ve tapped it, or long pressed it. But I also want it to open a page ONLY once you’ve released the ...
0
votes
1
answer
42
views
How to deliver press event to component which is covered by another component?
I have a data list and the list is overlapped by an invisible scroll-view for more dynamic interaction.
The scroll-view have to scrollable always. And the data list should also be touchable.
However, ...
1
vote
0
answers
264
views
Why are my pointerInput PointerEvents being replayed in Jetpack Compose?
I am currently trying to implement some functionality that requires me to listen for and react to N simultaneous Press & Release touch events on different UI elements (in a Grid implementation ...
0
votes
1
answer
93
views
PhotoView package not working correctly inside a Stack widget
When using the PhotoView package and using a stack to overlap more images the zoom and scroll function is not working in the overlapping area.
I am using the PhotoView Dart package to show a zoomable ...
0
votes
1
answer
1k
views
Action on swipe to left. Jetpack Compose, Android
I'm new to Android Development and working right now on my first "real project" (just trying to copy iPhone calculator). The question is how do I implement deletion on swipe to left side of ...
1
vote
0
answers
160
views
How to Implement Swipe Gestures in Vaadin Flow and Customize Behavior
I am working on a PWA project using Vaadin Flow, and I'm interested in implementing swipe gestures similar to mobile app behavior. Specifically, I want to create a UI where users can swipe left or ...
2
votes
0
answers
213
views
Unable to Achieve Full-Screen View Transition in Jetpack Compose android
I'm working on a Compose app where I need a custom view to expand to full screen when dragged up and return to its original size when dragged down. However, my current implementation isn't achieving ...