Skip to content

Commit

Permalink
Remove touchscreen device special case - see Issue #148
Browse files Browse the repository at this point in the history
  • Loading branch information
jamietre committed Jun 19, 2013
1 parent bb755aa commit 128ae41
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ Features:
* Return promises from asynchronous events rather than requiring callbacks like "onConfigured"
* Return a non-jQuery object exposing the imagemapster API to simplify coding against it

####Version 1.2.14 (unreleased)

* Enable mouseover events when touchscreen found (to account for proliferation of machines with mouse pointer + touchscreen)
* TODO - detect input device actively to determine when highlight effect should be enabled

####Version 1.2.13

* Fix problem with mouseoutdelay=01
Expand Down
2 changes: 1 addition & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
};

$.mapster = {
version: "1.2.13",
version: "1.2.14-beta1",
render_defaults: {
isSelectable: true,
isDeselectable: true,
Expand Down
2 changes: 1 addition & 1 deletion src/license.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* ImageMapster
Version: 1.2.13 (6/6/2013)
Version: 1.2.14-beta1 (6/18/2013)
Copyright 2011-2012 James Treworgy
Expand Down
16 changes: 6 additions & 10 deletions src/mapdata.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@
window.clearTimeout(me.activeAreaEvent);
me.activeAreaEvent=0;
}
if (delay<0) {
deferred.resolve();
} else {
if (delay>=0) {
if (area.owner.currentAction || delay) {
me.activeAreaEvent = window.setTimeout((function() {
return function() {
Expand Down Expand Up @@ -844,14 +842,12 @@
}

if (!mapArea.nohref) {
$area.bind('click.mapster', me.click);

if (!m.isTouch) {
$area.bind('mouseover.mapster', me.mouseover)
.bind('mouseout.mapster', me.mouseout)
.bind('mousedown.mapster', me.mousedown);
$area.bind('click.mapster', me.click)
.bind('mouseover.mapster', me.mouseover)
.bind('mouseout.mapster', me.mouseout)
.bind('mousedown.mapster', me.mousedown);

}


}

Expand Down

0 comments on commit 128ae41

Please sign in to comment.