Skip to content

Commit 3270fbd

Browse files
docs: clarify pinch guard fallbacks
Co-authored-by: siarheihuzarevich <13272876+siarheihuzarevich@users.noreply.github.com>
1 parent b34ac03 commit 3270fbd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

projects/f-flow/src/f-zoom/f-zoom.directive.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ export class FZoomDirective extends FZoomBase implements OnInit, AfterViewInit,
232232

233233
private _getTouchDistance(touches: TouchList): number {
234234
if (touches.length !== 2) {
235+
// Callers guard for pinch-ready touch events; return neutral distance if the check is bypassed.
235236
return 0;
236237
}
237238

@@ -246,6 +247,7 @@ export class FZoomDirective extends FZoomBase implements OnInit, AfterViewInit,
246247

247248
private _getTouchCenter(touches: TouchList): IPoint {
248249
if (touches.length !== 2) {
250+
// Callers guard for pinch-ready touch events; return neutral center if the check is bypassed.
249251
return PointExtensions.initialize();
250252
}
251253

0 commit comments

Comments
 (0)