-
mouse-wheel
View mouse-wheel事件
當指針設備(通常是鼠標)的滾輪按鈕在視圖上滾動時觸發。
-
類型 說明 x Number點擊視圖的橫屏坐標。
y Number點擊視圖的屏幕垂直坐標。
deltaY Number代表垂直滾動量的數字。
type String事件類型。
值永遠是"mouse-wheel".
stopPropagation Function防止事件在事件鏈中冒泡。
timestamp Number發出事件的時間戳(以毫秒為單位)。
native Object標準 DOM WheelEvent 。
屬性:
例子:
view.on("mouse-wheel", function(event){ // deltaY value is positive when wheel is scrolled up // and it is negative when wheel is scrolled down. console.log(event.deltaY); });
-
基本信息
以下是所在類或對象的基本信息。
AMD:
require(["esri/views/SceneView"], (SceneView) => { /* code goes here */ });
ESM:
import SceneView from "@arcgis/core/views/SceneView";
類:
esri/views/SceneView
繼承: SceneView > View > Accessor
自從:用於 JavaScript 4.0 的 ArcGIS API
用法說明
SceneView mouse-wheel事件
的定義如下:
相關用法
- JavaScript ArcGIS SceneView double-click事件用法及代碼示例
- JavaScript ArcGIS SceneView click事件用法及代碼示例
- JavaScript ArcGIS SceneView key-down事件用法及代碼示例
- JavaScript ArcGIS SceneView layerview-create事件用法及代碼示例
- JavaScript ArcGIS SceneView layerview-create-error事件用法及代碼示例
- JavaScript ArcGIS SceneView drag事件用法及代碼示例
- JavaScript ArcGIS SceneView pointer-move事件用法及代碼示例
- JavaScript ArcGIS SceneView immediate-click事件用法及代碼示例
- JavaScript ArcGIS SceneView hold事件用法及代碼示例
- JavaScript ArcGIS SceneView.breakpoints用法及代碼示例
- JavaScript ArcGIS SceneView.on用法及代碼示例
- JavaScript ArcGIS SceneView.highlightOptions用法及代碼示例
- JavaScript ArcGIS SceneView用法及代碼示例
- JavaScript ArcGIS SceneView.input用法及代碼示例
- JavaScript ArcGIS SceneView.ui用法及代碼示例
- JavaScript ArcGIS SceneView.whenAnalysisView用法及代碼示例
- JavaScript ArcGIS SceneView.camera用法及代碼示例
- JavaScript ArcGIS SceneView.widthBreakpoint用法及代碼示例
- JavaScript ArcGIS SceneView.navigation用法及代碼示例
- JavaScript ArcGIS SceneView.hitTest用法及代碼示例
- JavaScript ArcGIS SceneView.popup用法及代碼示例
- JavaScript ArcGIS SceneView.graphics用法及代碼示例
- JavaScript ArcGIS SceneView.when用法及代碼示例
- JavaScript ArcGIS SceneView.zoom用法及代碼示例
- JavaScript ArcGIS SceneView.container用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 SceneView mouse-wheel event。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。