Skip to content

Commit

Permalink
Moves the global pointerButtons to the WorldEvents object
Browse files Browse the repository at this point in the history
  • Loading branch information
hobnob committed Nov 8, 2024
1 parent c2da329 commit 948ac2e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ import org.scalajs.dom.window

import scala.scalajs.js.Date

@SuppressWarnings(Array("scalafix:DisableSyntax.var"))
var pointerButtons: Map[Double, Batch[(Int, Date)]] = Map.empty

final class WorldEvents:
@SuppressWarnings(Array("scalafix:DisableSyntax.var"))
private var pointerButtons: Map[Double, Batch[(Int, Date)]] = Map.empty

def absoluteCoordsX(relativeX: Double): Int = {
val offset: Double =
Expand Down

0 comments on commit 948ac2e

Please sign in to comment.