fix: disable analog monitor animation
Render stick and trigger progress values without implicit SwiftUI animation so rapid controller reports are not displayed as delayed movement. Co-Authored-By: openai/gpt-5.6-luna: removed analog display smoothing
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ if(NOT CMAKE_GENERATOR MATCHES "^(Ninja|Xcode)$")
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.21)
|
cmake_minimum_required(VERSION 3.21)
|
||||||
project(xone_macos VERSION 0.1.15 LANGUAGES CXX Swift)
|
project(xone_macos VERSION 0.1.16 LANGUAGES CXX Swift)
|
||||||
|
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
|
|
||||||
|
|||||||
@@ -292,6 +292,7 @@ struct ContentView: View {
|
|||||||
.frame(width: 12, alignment: .leading)
|
.frame(width: 12, alignment: .leading)
|
||||||
ProgressView(value: normalized)
|
ProgressView(value: normalized)
|
||||||
.frame(width: 82)
|
.frame(width: 82)
|
||||||
|
.animation(nil, value: normalized)
|
||||||
Text("\(value)")
|
Text("\(value)")
|
||||||
.font(.caption2.monospacedDigit())
|
.font(.caption2.monospacedDigit())
|
||||||
.frame(width: 42, alignment: .trailing)
|
.frame(width: 42, alignment: .trailing)
|
||||||
@@ -305,6 +306,7 @@ struct ContentView: View {
|
|||||||
.frame(width: 76, alignment: .leading)
|
.frame(width: 76, alignment: .leading)
|
||||||
ProgressView(value: Double(value), total: 1023)
|
ProgressView(value: Double(value), total: 1023)
|
||||||
.frame(width: 70)
|
.frame(width: 70)
|
||||||
|
.animation(nil, value: value)
|
||||||
Text("\(value)")
|
Text("\(value)")
|
||||||
.font(.caption2.monospacedDigit())
|
.font(.caption2.monospacedDigit())
|
||||||
.frame(width: 32, alignment: .trailing)
|
.frame(width: 32, alignment: .trailing)
|
||||||
|
|||||||
Reference in New Issue
Block a user