ImgAreaSelect is a jQuery plugin for selecting a rectangular area of an image. It allows web developers to easily implement image cropping functionality, as well as other user interface features, such as photo notes (like those on Flickr).
As titled, when using imgAreaSelect under IE10 the control is unusable as it incorrectly removes mouse events straight away after being initialized.
Oddly, this issue doesn't seem to occur on IE9 or IE8.
I suspect this is something to do with how the 'enable/disable' variables are checked, but most importantly I wonder why there are two variables throughout the code that control whether the plugin is enabled or not...both 'options.enable' and 'options.disable'.
This seems a bit unnecessary, compared to having just one variable.
As titled, when using imgAreaSelect under IE10 the control is unusable as it incorrectly removes mouse events straight away after being initialized. Oddly, this issue doesn't seem to occur on IE9 or IE8.
I suspect this is something to do with how the 'enable/disable' variables are checked, but most importantly I wonder why there are two variables throughout the code that control whether the plugin is enabled or not...both 'options.enable' and 'options.disable'. This seems a bit unnecessary, compared to having just one variable.
For the line containing the following code:
I've simply changed the code around this to be the following situation:
This fixed the issue for me under IE10, however it may not be the best solution as I've still left in the 'options.enable' checks elsewhere.