Resolved #1962 - set a max zoom level so that "infinite zoom" from capacative scrolling is no longer irrecoverable

This commit is contained in:
Yair Morgenstern 2020-02-19 22:34:53 +02:00
parent 8733f02f85
commit 43918a2580
2 changed files with 3 additions and 3 deletions

View File

@ -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'

View File

@ -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)
}