mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-25 16:59:01 +09:00
This DOM/Web API is entirely irrelevant for desktop use. We give back the width/height of the root scrollframe of content and for scale we pass forward our dpp resolution (usually 1.0). Since we have no "no touch" zones in our content on desktop,. the rest (origin and offset) is hard-coded to (0,0).
21 lines
704 B
Text
21 lines
704 B
Text
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*
|
|
* The origin of this IDL file is:
|
|
* https://wicg.github.io/visual-viewport/#the-visualviewport-interface
|
|
*/
|
|
|
|
interface VisualViewport : EventTarget {
|
|
readonly attribute double offsetLeft;
|
|
readonly attribute double offsetTop;
|
|
|
|
readonly attribute double pageLeft;
|
|
readonly attribute double pageTop;
|
|
|
|
readonly attribute double width;
|
|
readonly attribute double height;
|
|
|
|
readonly attribute double scale;
|
|
};
|