mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-11 12:37:46 +08:00
@@ -676,11 +676,11 @@ class _MouseInteractiveViewerState extends State<MouseInteractiveViewer>
|
||||
}
|
||||
|
||||
void _onPointerDown(PointerDownEvent event) {
|
||||
widget.onPointerDown?.call(event);
|
||||
final localPosition = event.localPosition;
|
||||
if (localPosition.dx < 40 || localPosition.dy < 40) {
|
||||
return;
|
||||
}
|
||||
widget.onPointerDown?.call(event);
|
||||
_scaleGestureRecognizer.addPointer(event);
|
||||
}
|
||||
|
||||
|
||||
@@ -744,8 +744,9 @@ class RenderProgressBar extends RenderBox implements MouseTrackerAnnotation {
|
||||
final capRadius = _barHeight / 2;
|
||||
final adjustedWidth = availableSize.width - barHeight;
|
||||
final dx = widthProportion * adjustedWidth + capRadius;
|
||||
final startPoint = Offset(capRadius, availableSize.height / 2);
|
||||
final endPoint = Offset(dx, availableSize.height / 2);
|
||||
final dy = availableSize.height / 2;
|
||||
final startPoint = Offset(capRadius, dy);
|
||||
final endPoint = Offset(dx, dy);
|
||||
canvas.drawLine(startPoint, endPoint, baseBarPaint);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user