]> git.proxmox.com Git - mirror_novnc.git/commit
Fix for scroll offset in Util.getPosition()
authorSolly Ross <sross@redhat.com>
Mon, 5 May 2014 18:29:29 +0000 (14:29 -0400)
committerSolly Ross <sross@redhat.com>
Mon, 5 May 2014 18:51:32 +0000 (14:51 -0400)
commitc77938efc9f52449c30018bf29422c1d590cdbdc
tree416095eecb8c9111affead7503f04239bec105ac
parent082027dc8742292ce3e3de0f742fed5c13e68337
Fix for scroll offset in Util.getPosition()

Previously, Util.getPosition didn't deal with scrolling
particularly well.  This fixes that by calculating the
scroll offset when dealing with getting mouse positions.

Credit to @erikgull and @emmar for the initial version of
the fix.  Credit to Brian Huismanfor the initial code.

Closes #295
Relevant to #258
include/util.js