FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

point-events feature · Issue #6191 · NativeScript/NativeScript · GitHub

point-events feature #6191

Description

I want to implement point-events for Nativescript.
Though I am facing a technical dilemma for which I might need help. Thus this issue

To achieve that feature you need UIView::hitTest or iOS and android.view.View.dispatchTouchEvent on android.

For it work well we would need this to be applied to any view, either from the framework or from a module.
This could be achieved on iOS with a category on UIView in which we would implement hitTest and inside call a method on the Nativescript View class. But is there a way to use category that way in Nativescript? Maybe in the widgets?

Now on android it s even more tricky as it is a method that need to be overridden. There I fill stuck.

I implemented this in another framework (Titanium Mobile), but there it was easier because each widget (even modules) was actually created inside a custom bounding View on which I had total control. So when you were creating a button you were actually creating a view and a button inside it.

For me this is a must have feature as I use it all the time in my apps. For example a flexible app bar under which you have a map view for example.

Any idea would be much appreciated

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL