Comments (7)
@wztechno I lost you at "As the scrollContainer does not allow for swipe events...".
And the code doesn't seem to make any sense. So maybe you try to explain what you're trying to solve/achieve without going into technical implementation details?
from gestouch.
I am really sorry for my bad english as I don't speak english natively, and thank you for reply
idea:
- Listen to SwipeGesture on ScrollContainer (I was able to do)
- When SwipeGesture is triggered, stop the ScrollContainer Scrolling (I was able to do)
- I need Repeat the exact SwipeGesture Event (as if the user finger has swiped the screen again) (not finding a way to do it)
- This will trigger a new Swipe Event to be passed to ScrollContainer Children. (I was able to do)
Any idea how point 3 can be done ?
Hope I was able to explain myself well this time :)
from gestouch.
@wztechno no, I asked you to explain without going deep into technical aspect. Are you trying to swipe on some element in the scrolling list so it would go side, like on some mobile interfaces?
from gestouch.
yes exactly ..
from gestouch.
@wztechno well first of all let me suggest it's not the best idea from the UX perspective to stop the scrolling in this case.
Anyway, what you want is to notify some element that swipe happened and probably pass some more info. So your first task is to find the element under touch (where swipe happened). To do it you could, for example, use gesture.location
– which is Point in global (stage) coordinate space. Once you have reference to the element notify it by calling custom method, e.g.:
private function onSwipeRecognized(event:GestureEvent):void {
var point:Point = swipeGesture.location;// do some appropriate globalToLocal() business
var myListItem:MyListItem = getListElementUnderPoint(point);
myListItem.doSomething();// or myListItem.onSwiped()
// this can be myListItem.dispatchEvent(...MyEvent.SWIPED) if that's what you need
}
I'm not sure what you meant by "I need Repeat the exact SwipeGesture Event". Event has already happened. If you got it – it means you were notified. You need to handle it.
from gestouch.
That solved my problem .. thank u so much for great library
from gestouch.
@wztechno cheers!
from gestouch.
Related Issues (20)
- Limit panning in TransformGesture HOT 2
- DoubleTab and zoom HOT 3
- use Gestouch in Normal As3 HOT 1
- Gestouch suddenly stopped working on Windows 10 with latest Animate CC HOT 2
- How can I use gestouch in starling2 and normal swf file with together ? HOT 1
- freerotation behaviour HOT 4
- SwipeGesture and Drag Drop HOT 1
- swipe container and tap with button scaling up HOT 19
- air error HOT 6
- Errors when using swipe gesture with Starling HOT 2
- Starling.dispose() loses Gestouch swipe HOT 3
- Gestouch with Air18 HOT 8
- Gestouch suddenly stops working HOT 7
- Cannot register CLICK events on items inside an item dragged with Gestouch HOT 2
- example for drag and zoom and rotate. all together with gestouch HOT 10
- Listeners not working in certain circumstances HOT 15
- SingleTap and DoubleTap - suggestions? HOT 3
- TUIO and Starling HOT 2
- Shaky TransformGesture HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gestouch.