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.

A gesture is a specific pattern of touch, cursor, or physical movement (Recognized through a camera or other sensor such as or ) that may be recognized by an application to perform a specific task. See also .

2187 questions
0
votes
1 answer

SpriteKit Controls / Gesture

Essentially I am trying to incorporate X2 gamescene buttons that do the following functions: 1) Tap to fly (this I have working) 2) Tap to shoot a projectile from Player position (I do not have working). My problem is I currently have the fly func…
AJ James
  • 11
  • 5
0
votes
0 answers

NavigationLink not working if label is conditional

I have created a scroll bar with a list of folders created by the user like in the picture a simple navigation link navigates inside the folder. in order to give the option to the user to delete the folder, on the navigation view label I put an IF…
Damiano Miazzi
  • 1,514
  • 1
  • 16
  • 38
0
votes
2 answers

What is the (general) method to use Windows 10 gestures of a touchpad in QT?

I want to use events generated by Windows 10 touchpad gestures in QT (C++, Visual Studio): two finger pinch on touchpad for zoom two finger pan on touchpad for panning The QT documentation / QTCreator has an example for gestures. Apparently, the…
0
votes
0 answers

Using Swift gestures to move(or swipe) to fill-in collectionViewCells in a collectionView, or maybe some other solutions?

What I want to is to achieve something like swipe to right to fill-in colors(time availability) on a time-axes. Basically like below: My solution right now is to use a UICollectionView and make it horizontal and expect to swipe on the…
Invincible_Pain
  • 491
  • 2
  • 6
  • 17
0
votes
1 answer

Can OndoubleTapListener make a class with GestureListener?

package com.example.gestures; import androidx.appcompat.app.AppCompatActivity; import android.view.Menu; import android.view.MenuItem; import android.os.Bundle; import android.gesture.Gesture; import android.view.GestureDetector; import…
Jomer
  • 139
  • 1
  • 8
0
votes
1 answer

After adding a new annotation, my first tap is not handled, but the second tap is

If I add a new custom annotation, and click the button to pop up the callout, OR click anywhere on the map, nothing happens. If I click again, everything works... Any ideas? I have looked at many theories, but so far no luck... @IBOutlet weak var…
marhab
  • 29
  • 3
0
votes
0 answers

Flutter TapGestureRecognizer in text span not detect small words with different styles-- if it one or two characters

i have a word like ABCDE each char in text span with different style recognizer not detect correctly EX: recognizer: TapGestureRecognizer() ..onTap = () => print('${char.key} onTap'), some of them not print accurate but when…
0
votes
0 answers

GestureDetector not detecting inside of List.generate

I have the following streambuilder below. If I put the GestureDetector on the Row widget (as indicated below) it receives the gesture. However, when I put it as shown, it does not. My current theory is that it is due to the List.generation there,…
William Terrill
  • 3,484
  • 4
  • 31
  • 41
0
votes
1 answer

Expand Bottom Sheet without a button

I've created a bottom sheet that swipes up when a button on the screen is clicked. The main activity is a map - with a button that expands the bottom sheet. I'm using the Material Bottom sheet library. Main Screen: Hidden Bottom Sheet Expanded…
Aliza
  • 3
  • 2
0
votes
1 answer

Google AdMob interfering with Shake Gesture in SwiftUI

I have an app built in SwiftUI that uses a shake gesture, which has worked perfectly throughout development. Today I added a banner ad using AdMob successfully. However, doing so appears to prevent the Shake Gesture from working. The individually…
corleyq
  • 93
  • 7
0
votes
1 answer

Android: fllipper view not getting flliped

Basically, I have a ViewFlipper that flips when I swipe my finger on it. This is the code I have in my Activity: public boolean onTouchEvent(MotionEvent touchevent) { switch (touchevent.getAction()) { case MotionEvent.ACTION_DOWN: { …
user685275
  • 2,097
  • 8
  • 26
  • 32
0
votes
1 answer

Call onBackPressed inside a private class in Kotlin

I'm trying to create a gesture detector class by following the guide on the Android Developers website, but I'm stuck because I cannot invoke the method onBackPressed() inside the new private class created by me. How can I manage it? This is my…
Babbara
  • 448
  • 1
  • 6
  • 21
0
votes
1 answer

How to recognize which button is pressed on the view after an UILongPressGestureRecognizer

I want to capture the frame or some proprieties(a frame or tag of a UIButton in this case) after a UILongPressGestureRecognizer is fired. this is my snippet: ...create the uibutton (btn instance) //add gesture to button UILongPressGestureRecognizer…
Mat
  • 7,613
  • 4
  • 40
  • 56
0
votes
1 answer

Simulating a gesture

I'm trying to simulate the swipe-to-right gesture in Android with this method: private void addGestures () { final int[] x1 = {0}; final int[] x2 = {0}; final int[] y1 = {0}; final int[] y2 = {0}; final int[] t1 = {0}; final…
Babbara
  • 448
  • 1
  • 6
  • 21
0
votes
1 answer

How does Instagram draw text and sticker in Story?

I'm writing an app that I can drag, scale, rotate text (StaticLayout) and sticker (Bitmap) like Instagram Story. I use a custom view to draw objects in onDraw(), detect gesture using MotionEvent in onTouchEvent(). But I can't find the bounds which…
Nam Nô
  • 31
  • 6
1 2 3
99
100