Hi Jonathan, Thanks for getting back to me. Unfortunately, the code that I am using is generated using Lectora. I don't know if you are familiar with this but it makes an incredible mess of the html which I am trying to work around. For this reason, it is hard to give you a working example. I will try to simplify a version and stick it into codepen. In the meantime..... The error is being fired when it gets to the hitTest function in the following piece of JS:
Draggable.create(droppables, {
type:"x,y",
edgeResistance:0.85,
bounds:$container,
dragClickables:true,
onPress:function(e) {closeOpenFeedback()},
onDrag:function(e) { $(this).addClass("draggingShadow");},
onDragEnd:function(e) {
$(this).removeClass("draggingShadow");
var i = targets.length;
while (--i > -1) {
if (this.hitTest(targets[i], overlapThreshold)) {
console.log(targets[i]);
onDrop(this.target, targets[i]);
}
}
decideIfHit(this);
},
});
I am running on xp mode using a standard ie8 installation, it should be realistic as it is a virtual machine.
As I mentioned, it works perfectly on modern browsers which is making it tricky to troubleshoot. I will try to strip back the HTML and add it to codepen.
Thank you