This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -285,22 +285,26 @@ class PointerData {
285
285
286
286
/// For events with change of PointerChange.panZoomUpdate:
287
287
///
288
- /// The current panning magnitude of the pan/zoom in the x direction, in physical pixels.
288
+ /// The current panning magnitude of the pan/zoom in the x direction, in
289
+ /// physical pixels.
289
290
final double panX;
290
291
291
292
/// For events with change of PointerChange.panZoomUpdate:
292
293
///
293
- /// The current panning magnitude of the pan/zoom in the x direction, in physical pixels.
294
+ /// The current panning magnitude of the pan/zoom in the x direction, in
295
+ /// physical pixels.
294
296
final double panY;
295
297
296
298
/// For events with change of PointerChange.panZoomUpdate:
297
299
///
298
- /// The difference in panning of the pan/zoom in the x direction since the latest panZoomUpdate event, in physical pixels.
300
+ /// The difference in panning of the pan/zoom in the x direction since the
301
+ /// latest panZoomUpdate event, in physical pixels.
299
302
final double panDeltaX;
300
303
301
304
/// For events with change of PointerChange.panZoomUpdate:
302
305
///
303
- /// The difference in panning of the pan/zoom in the y direction since the last panZoomUpdate event, in physical pixels.
306
+ /// The difference in panning of the pan/zoom in the y direction since the
307
+ /// last panZoomUpdate event, in physical pixels.
304
308
final double panDeltaY;
305
309
306
310
/// For events with change of PointerChange.panZoomUpdate:
Original file line number Diff line number Diff line change @@ -57,7 +57,10 @@ struct alignas(8) PointerData {
57
57
};
58
58
59
59
// Must match the PointerSignalKind enum in pointer.dart.
60
- enum class SignalKind : int64_t { kNone , kScroll };
60
+ enum class SignalKind : int64_t {
61
+ kNone ,
62
+ kScroll ,
63
+ };
61
64
62
65
int64_t embedder_id;
63
66
int64_t time_stamp;
Original file line number Diff line number Diff line change @@ -347,8 +347,8 @@ PointerState PointerDataPacketConverter::EnsurePointerState(
347
347
state.is_pan_zoom_active = false ;
348
348
state.physical_x = pointer_data.physical_x ;
349
349
state.physical_y = pointer_data.physical_y ;
350
- state.pan_x = pointer_data. pan_x ;
351
- state.pan_y = pointer_data. pan_y ;
350
+ state.pan_x = 0 ;
351
+ state.pan_y = 0 ;
352
352
states_[pointer_data.device ] = state;
353
353
return state;
354
354
}
You can’t perform that action at this time.
0 commit comments