renderer: add mouse zoom animations (#10882)

Adds animations for the mouse zoom effect.
This commit is contained in:
aphelei 2025-07-01 11:33:48 +02:00 committed by GitHub
parent e827b75e22
commit e9c5594186
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 20 additions and 10 deletions

View file

@ -213,7 +213,7 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus, bool mouse) {
if (PMONITOR == nullptr)
return;
if (*PZOOMFACTOR != 1.f)
if (PMONITOR->m_cursorZoom->value() != 1.f)
g_pHyprRenderer->damageMonitor(PMONITOR);
bool skipFrameSchedule = PMONITOR->shouldSkipScheduleFrameOnMouseEvent();