Giter Club home page Giter Club logo

Comments (6)

fljot avatar fljot commented on July 28, 2024

Seems like you use it with Starling?
Add also

Gestouch.addTouchHitTester(new NativeTouchHitTester(stage));

Strange though, why did it appear only when switching from exe to air.

Ehhh I should remove that semi-automatic initialization and specify that you (user) should initialize everything explicitly, manually...

from gestouch.

bluelemonade avatar bluelemonade commented on July 28, 2024

hello,

my information was a bit confusing. I didn't use starling.
I have normal MOUSE_DOWN events on a few buttons. I get the errors on these buttons. I also have a MOUSE_DOWN event on the stage, to do some things for logging.

I got the error only on these events, I could move the clips with the Gestouch event with the mouse, whene using the gestures the scaling and rotation is working but not the right way.

thanks...

from gestouch.

fljot avatar fljot commented on July 28, 2024

So, didn't my advice help??

from gestouch.

bluelemonade avatar bluelemonade commented on July 28, 2024

when using the TouchHitTester I get this

throw new Error("Display list adapter not found for target of type '" + getQualifiedClassName(target) + "'.");

from gestouch.

fljot avatar fljot commented on July 28, 2024

Okay.. just to make it clear for you and to anyone who could read this:

  1. (Entry point – when mouse/touch event happened) Input adapter was not able to find any touch target. It happened because there was no entity specified to do that (touch hit tester). I had some semi-intelligent automatic way to initialize those when working with old good DisplayObjects, but apparently it's more of confusing situation, when something is done manually (you created input adapter yourself).
  2. Now that you've added touch hit tester – touch object has target now. But it couldn't find suitable display list adapter to get the hierarchy of objects (think of regular old good Display List) to analyze stuff. Again, if we talk about automatic stuff – it would be registered-initialized when you create a gesture for some DisplayObject. Again, semi-intelligent-semi-stupid = apparently confusing when things don't go well automatically.

So to fix this just write

// flash.display.DisplayObject
Gestouch.addDisplayListAdapter(DisplayObject, new NativeDisplayListAdapter());

Sorry for confusion and thank you for bringing attention to this. I should remove that semi-automatic-"helpful" stuff.

from gestouch.

fljot avatar fljot commented on July 28, 2024

Or I could simply do nothing, if touch target is not found – what's the point anyway, if you haven't added anything for Stage – you're probably not interested in that anyway... Ah yeah, total amount of touches might be useful. So yes, I should remove semi-automatic stuff and explain that everything must be initialized manually (it's not hard anyway).

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.