mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-20 17:32:57 +07:00
Resolved #1962 - set a max zoom level so that "infinite zoom" from capacative scrolling is no longer irrecoverable
This commit is contained in:
parent
8733f02f85
commit
43918a2580
@ -33,8 +33,8 @@ allprojects {
|
||||
version = '1.0.1'
|
||||
ext {
|
||||
appName = "Unciv"
|
||||
appCodeNumber = 382
|
||||
appVersion = "3.6.0-patch1"
|
||||
appCodeNumber = 383
|
||||
appVersion = "3.6.0-patch2"
|
||||
|
||||
gdxVersion = '1.9.10'
|
||||
roboVMVersion = '2.3.1'
|
||||
|
@ -17,7 +17,7 @@ open class ZoomableScrollPane: ScrollPane(null) {
|
||||
}
|
||||
|
||||
fun zoom(zoomScale: Float) {
|
||||
if (zoomScale < 0.5f) return
|
||||
if (zoomScale < 0.5f || zoomScale > 10) return
|
||||
setScale(zoomScale)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user