Skip to content

Commit

Permalink
Fixes to Selection defaults for adjustX and adjustY.
Browse files Browse the repository at this point in the history
  • Loading branch information
darkfrog26 committed Oct 27, 2017
1 parent 79e20d4 commit d823e5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hypertext/src/main/scala/io/youi/hypertext/Selection.scala
Expand Up @@ -5,7 +5,7 @@ import io.youi.hypertext.border.BorderStyle
import io.youi.spatial.BoundingBox
import io.youi.{Color, Key, _}
import org.scalajs.dom.raw.MouseEvent
import org.scalajs.dom.{document, html}
import org.scalajs.dom.{html, window}
import reactify._

import scala.collection.immutable.ListSet
Expand All @@ -23,8 +23,8 @@ import scala.collection.immutable.ListSet
abstract class Selection[T](root: html.Element,
elements: => ListSet[T],
autoStyle: Boolean = true,
adjustX: => Double = document.body.scrollLeft,
adjustY: => Double = document.body.scrollTop,
adjustX: => Double = window.pageXOffset,
adjustY: => Double = window.pageYOffset,
includeChildTargets: Boolean = false) extends Container {
element.style.pointerEvents = "none"

Expand Down

0 comments on commit d823e5c

Please sign in to comment.