Giter Club home page Giter Club logo

Comments (2)

fljot avatar fljot commented on July 28, 2024

It's not that you did something wrong, but that it needs to be "fixed" a bit. Read #86 for more info.

Add:

Gestouch.addDisplayListAdapter(flash.display.DisplayObject, new NativeDisplayListAdapter());
Gestouch.addTouchHitTester(new NativeTouchHitTester(stage));

Quick info to make it clear why so (if anyone will ever read this): it's because when input (touch/mouse event) happened, system (touches manager) couldn't find target for touch because there was only StarlingTouchHitTester registered and touch happened not over any Starling object. Adding these two lines will make it work with flash.display.DisplayObject also, fixing previously unresolved touch target.

from gestouch.

Toinouze avatar Toinouze commented on July 28, 2024

Hi,

Thanks for your fast reply.

After adding the native adapter & touch hit tester, i got another error when clicking on anything :

Error: Display list adapter not found for target of type 'starling.display::Image'.
at org.gestouch.core::GesturesManager/org.gestouch.core::gestouch_internal::onTouchBegin()[O:\Dev\Gestouch\src\org\gestouch\core\GesturesManager.as:218]
at org.gestouch.core::TouchesManager/org.gestouch.core::gestouch_internal::onTouchBegin()[O:\Dev\Gestouch\src\org\gestouch\core\TouchesManager.as:151]
at org.gestouch.input::NativeInputAdapter/mouseDownHandler()[O:\Dev\Gestouch\src\org\gestouch\input\NativeInputAdapter.as:189]

Edit : nevermind, it was an import issue. We will put this in production and see if the problems is fixed. Thanks a lot !

from gestouch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.