hittest Questions

5

Solved

I have a heavily optimized JavaScript app, a highly interactive graph editor. I now started profiling it (using Chrome dev-tools) with massive amounts of data (thousands of shapes in the graph), an...
Jammie asked 24/1, 2017 at 14:19

4

Solved

I want to create an Interface in which it is possible to drag your finger over several Areas. This changes the state of the areas to a selected state (See images). What is the best way to approach ...
Undershot asked 8/12, 2021 at 15:26

3

I'm new to this and currently building an AR-related application, on the old version I stated this let results = self.hitTest(screenPosition, types: [.featurePoint]) and now I have a problem where...
Thinner asked 8/10, 2020 at 7:51

13

Solved

One of my old apps is not working with iOS8. When I start the app up, and try to tap on the screen anywhere, I get this message in my console: unexpected nil window in _UIApplicationHandleEventFro...
Pershing asked 21/9, 2014 at 19:37

9

Solved

The polygon is given as a list of Vector2I objects (2 dimensional, integer coordinates). How can i test if a given point is inside? All implementations i found on the web fail for some trivial coun...
Wiegand asked 13/7, 2009 at 14:2

3

Solved

Is there a way to gain the type of touch gestures that triggered a UIEvent? So, let's say I intercept a gesture with hitTest:withEvent:. How do I identify what kind of touch (pinch, tap, swipe, etc...
Sonatina asked 6/2, 2013 at 9:55

1

In my renderer delegate I create a raycast query from the center of the view to track estimated plane and display a 3D pointer that follows the raycast result. It is done via view.raycastQuery(fro...
Gout asked 5/2, 2020 at 10:8

3

Solved

I have a message which is within a border and is displayed in front of a MDI client area. Because it's just a message, I set it's IsHitTestVisible to false. For convenience, I've also included a bu...
Ashanti asked 27/8, 2012 at 19:25

4

I am trying to intercept any activity (i.e. touches) that happens inside my whole application. In other words, I am trying to be notified of any touch event that happens within my main UIView, con...
Desulphurize asked 29/11, 2010 at 13:18

2

Solved

I would like to allow the user to draw curves in such a way that no line can cross another line or even itself. Drawing the curves is no problem, and I even found that I can create a path that is c...
Stuart asked 26/6, 2011 at 5:46

5

Solved

I have a simple - trivial - UIView parent/child hierarchy. One parent (UIView). One child (UIButton). The parents bounds are smaller then it's child's bounds so that a portion of the child extends ...
Gilson asked 30/4, 2011 at 20:14

4

Solved

Edited See the comment section with Nathan for the latest project. There is only problem remaining: getting the right button. Edited I want to have a UIView that the user can rotate. That UIView...
Doyen asked 4/10, 2017 at 21:9

1

Is it possible to ignore an object in SceneKit's hitTest so that when the hitTest ray is sent, it goes through an object? I still want to see both objects, i just want the ray to ignore another. H...
Hhour asked 7/5, 2017 at 13:41

4

The browsers which have implemented parts of the SVG spec (Firefox etc) do hit-testing for us for free - if I attach a mousedown listener on an SVG object, I get notified whenever the shape is clic...
Carabao asked 1/2, 2010 at 4:23

1

in WPF when using VisualTreeHelper.HitTest even hidden Elements are found. To skip this elements and only return a result for visible ones, i created a HitTestFilter like the following : ///This F...
Paske asked 2/7, 2014 at 11:59

1

This is my problem: I work with SpriteKit and I want to ignore touch event when it occurs in some rectangle (prevent calling touchesBegan). The way how I would like to do it is something like "ov...
Towroy asked 11/1, 2017 at 15:31

2

Solved

I'm tying to create an app with SceneKit to solve a Rubik's Cube. I've made my own dae file for the cube. Upon touches began I have the object that's been hit func tapGesture(sender: UITapGestureR...
Geest asked 2/2, 2016 at 12:17

3

Solved

Bug — hit-testing doesn't work as intended when siblings overlap: There are 2 overlapping nodes in a scene which have the same parent (ie. siblings) The topmost node has userInteractionEnable...
Ambrosia asked 11/7, 2016 at 9:59

1

Solved

I'm new to SceneKit and 3D spaces in iOS. I'm currently working on a simple game that shows a cube of 28 segments ("mini cubes" if you want). I want to move the mini cubes by tapping them, but I c...
Ophthalmologist asked 18/1, 2015 at 0:49

3

I have a custom UIControl that contains a few other controls. In between those controls there is empty space and background of my UIControl needs to be transparent. I need to catch all touch event...
Twitter asked 30/10, 2014 at 3:58

2

I have an Ellipse on a Canvas and I'm doing Hit Testing on it. Every time I click the stroke of the Ellipse, the test passes. If I click in the middle of the Ellipse, the test fails. This is good! ...
Pend asked 4/1, 2010 at 20:17

6

couldn't find a solution for that. I am building an app, with big scroll view, who has paging (Horizontal). Inside this scroll view, there is a grid of UIView's, and an UIScrollview inside each on...
Airliah asked 7/11, 2012 at 15:31

5

Solved

I have 2 views , but i want to make 1 view (virtually) bigger. if I place my tapGesture on v1, the tap gesture works with a bigger hit area but if I place my tapGesture on v2 it doesn't work ( act...
Orotund asked 5/8, 2013 at 14:11

3

Solved

I have this rectangle in XAML : <Rectangle x:Name="MyRectangle" Height="300" Width="300"></Rectangle> I want to check if it intersects with another rectangle. In this question on SO,...
Rob asked 14/7, 2013 at 0:10

2

Solved

I would like to perform a rectangual hit test on WPF Canvas component in order to get Controls that are overlapped by a Rectangle framework element. I found a Silverlight's VisualTreeHelper.FindEle...
Siriasis asked 13/1, 2010 at 19:11

© 2022 - 2024 — McMap. All rights reserved.