mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-16 09:51:28 +03:00
disable scroll options when image is wrapped by window
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -402,12 +402,10 @@ class _ImagePaintState extends State<ImagePaint> {
|
||||
onHover: (evt) {},
|
||||
child: child));
|
||||
|
||||
final imageWidth = c.getDisplayWidth() * s;
|
||||
final imageHeight = c.getDisplayHeight() * s;
|
||||
final imageSize = Size(imageWidth, imageHeight);
|
||||
bool overflow =
|
||||
c.size.width < imageSize.width || c.size.height < imageSize.height;
|
||||
if (overflow && c.scrollStyle == ScrollStyle.scrollbar) {
|
||||
if (c.imageOverflow.isTrue && c.scrollStyle == ScrollStyle.scrollbar) {
|
||||
final imageWidth = c.getDisplayWidth() * s;
|
||||
final imageHeight = c.getDisplayHeight() * s;
|
||||
final imageSize = Size(imageWidth, imageHeight);
|
||||
final imageWidget = CustomPaint(
|
||||
size: imageSize,
|
||||
painter: ImagePainter(image: m.image, x: 0, y: 0, scale: s),
|
||||
|
||||
Reference in New Issue
Block a user