Flash viewer - Ctrl+scroll zoom in/out

This commit is contained in:
Jindra Petřík
2021-04-05 16:56:59 +02:00
parent b7e40c6152
commit 1e3d0b5696
3 changed files with 168 additions and 21 deletions
@@ -28,4 +28,34 @@ public class Zoom {
public Zoom() {
}
@Override
public int hashCode() {
int hash = 7;
hash = 97 * hash + (int) (Double.doubleToLongBits(this.value) ^ (Double.doubleToLongBits(this.value) >>> 32));
hash = 97 * hash + (this.fit ? 1 : 0);
return hash;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final Zoom other = (Zoom) obj;
if (Double.doubleToLongBits(this.value) != Double.doubleToLongBits(other.value)) {
return false;
}
if (this.fit != other.fit) {
return false;
}
return true;
}
}