You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Since LightPanda requires the client to know what they are clicking on we do not return the underlying element at this moment
234
234
// This can currenty only happen if the first pixel is clicked without having rendered any element. This will change when css properties are supported.
235
235
// This returns an ElementUnion instead of a *Parser.Element in case the element somehow hasn't passed through the js runtime yet.
236
+
// While x and y should be f32, here we take i32 since that's what our
237
+
// "renderer" uses. By specifying i32 here, rather than f32 and doing the
238
+
// conversion ourself, we rely on v8's type conversion which is both more
239
+
// flexible (e.g. handles NaN) and will be more consistent with a browser.
// TODO if pointer-events set to none the underlying element should be returned (parser.documentGetDocumentElement(self.document);?)
239
243
returntryElement.toInterface(element);
240
244
}
241
245
242
246
// Returns an array of all elements at the specified coordinates (relative to the viewport). The elements are ordered from the topmost to the bottommost box of the viewport.
247
+
// While x and y should be f32, here we take i32 since that's what our
248
+
// "renderer" uses. By specifying i32 here, rather than f32 and doing the
249
+
// conversion ourself, we rely on v8's type conversion which is both more
250
+
// flexible (e.g. handles NaN) and will be more consistent with a browser.
0 commit comments