From b87a1c5784ef4e82e85bf212939bb97586393864 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 20 Mar 2021 13:18:47 +0100 Subject: [PATCH] Fixed a ViewController issue where the camera was reported as moving when it wasn't. --- es-app/src/views/ViewController.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/es-app/src/views/ViewController.cpp b/es-app/src/views/ViewController.cpp index 46ed5ee99..ae75ca0c0 100644 --- a/es-app/src/views/ViewController.cpp +++ b/es-app/src/views/ViewController.cpp @@ -258,8 +258,8 @@ void ViewController::ReloadAndGoToStart() bool ViewController::isCameraMoving() { if (mCurrentView) { - if (mCamera.r3().x() != -mCurrentView->getPosition().x() || - mCamera.r3().y() != -mCurrentView->getPosition().y()) + if (mCamera.r3().x() - -mCurrentView->getPosition().x() != 0 || + mCamera.r3().y() - -mCurrentView->getPosition().y() != 0) return true; } return false;