同在UK<script id="maxthon-gestures-extention-helper" istopwindow="false">(function () {
var last_mouse_move_point;
var is_not_move;
var script_id = 'maxthon-gestures-extention-helper';
var is_message_sended;
// Whether the mouse is moved between 2 adjacent mousemove events
function notMove(point) {
if (is_not_move == false) {
return false;
}
if (Math.abs(last_mouse_move_point.y - point.y) < 2
&& Math.abs(last_mouse_move_point.x - point.x) < 2) {
return true;
}
else {
is_not_move = false;
return false;
}
}
if (window === top) {
document.querySelector('#' + script_id).setAttribute('istopwindow', 'true');
}
else {
document.querySelector('#' + script_id).setAttribute('istopwindow', 'false');
document.addEventListener('mousedown', function (event) {
if (event.button !== 2) {
return;
}
is_not_move = true;
last_mouse_move_point = null;
is_message_sended = false;
}, false);
document.addEventListener('mousemove', function (event) {
var point;
if (is_message_sended) {
return;
}
if (event.button !== 2) { // not right key is pressed down
return;
}
point = {
'x': event.clientX,
'y': event.clientY
};
if (last_mouse_move_point == null) {
last_mouse_move_point = point;
return;
}
if (notMove(point)) {
return;
}
top.postMessage({
'action': 'maxthon-gestures-start-drawing'
}, '*');
is_message_sended = true;
} ,false);
}
})();</script>
没出现过这种情况,不过出现了也很正常就是了,大不了丢掉
不过我面包放过保质期十天也没有生虫= =LZ你是放了多久
相比之下还是牛奶比较容易发霉,叹。。。(跑题了