|
30 | 30 | onEnd: function() {},
|
31 | 31 |
|
32 | 32 | onSkip: function() {},
|
33 |
| - |
| 33 | + |
34 | 34 | onNext: function() {}
|
35 | 35 | };
|
36 | 36 |
|
|
292 | 292 | left: step_data.left,
|
293 | 293 | right: step_data.right,
|
294 | 294 | margin: step_data.margin,
|
295 |
| - scroll: step_data.scroll |
| 295 | + scroll: step_data.scroll, |
| 296 | + preventEvents: step_data.preventEvents |
296 | 297 | };
|
297 | 298 |
|
298 | 299 | var customBtnProps = {
|
|
1103 | 1104 | .appendTo(that.enjoyhint);
|
1104 | 1105 | };
|
1105 | 1106 |
|
1106 |
| - that.disableEventsNearRect = function(rect) { |
| 1107 | + that.disableEventsNearRect = function(rect, alsoDisableRect) { |
| 1108 | + var top = rect.top; |
| 1109 | + var left = rect.left; |
| 1110 | + var right = rect.right; |
| 1111 | + var bottom = rect.bottom; |
| 1112 | + |
| 1113 | + //to disable events also within highlighted rectable, simply remove the gap |
| 1114 | + if (alsoDisableRect === true) { |
| 1115 | + top = bottom; |
| 1116 | + right = left; |
| 1117 | + } |
| 1118 | + |
1107 | 1119 | $top_dis_events
|
1108 |
| - .css({ |
1109 |
| - top: "0", |
1110 |
| - left: "0" |
1111 |
| - }) |
1112 |
| - .height(rect.top); |
| 1120 | + .css({ |
| 1121 | + top: "0", |
| 1122 | + left: "0" |
| 1123 | + }) |
| 1124 | + .height(top); |
1113 | 1125 |
|
1114 | 1126 | $bottom_dis_events.css({
|
1115 |
| - top: rect.bottom + "px", |
| 1127 | + top: bottom + "px", |
1116 | 1128 | left: "0"
|
1117 | 1129 | });
|
1118 | 1130 |
|
|
1121 | 1133 | top: "0",
|
1122 | 1134 | left: 0 + "px"
|
1123 | 1135 | })
|
1124 |
| - .width(rect.left); |
| 1136 | + .width(left); |
1125 | 1137 |
|
1126 | 1138 | $right_dis_events.css({
|
1127 | 1139 | top: "0",
|
1128 |
| - left: rect.right + "px" |
| 1140 | + left: right + "px" |
1129 | 1141 | });
|
1130 | 1142 | };
|
1131 | 1143 |
|
|
1437 | 1449 | else {
|
1438 | 1450 | distance = initial_distance;
|
1439 | 1451 | ver_button_position = initial_ver_position;
|
1440 |
| - that.$next_btn.html(customBtnProps.nextButton && customBtnProps.nextButton.text ? |
1441 |
| - customBtnProps.nextButton.text : 'Next'); |
1442 |
| - that.$prev_btn.html(customBtnProps.prevButton && customBtnProps.prevButton.text ? |
1443 |
| - customBtnProps.prevButton.text : 'Previous'); |
| 1452 | + that.$next_btn.html(customBtnProps.nextButton && customBtnProps.nextButton.text ? |
| 1453 | + customBtnProps.nextButton.text : 'Next'); |
| 1454 | + that.$prev_btn.html(customBtnProps.prevButton && customBtnProps.prevButton.text ? |
| 1455 | + customBtnProps.prevButton.text : 'Previous'); |
1444 | 1456 | }
|
1445 | 1457 |
|
1446 | 1458 | that.$prev_btn.css({
|
|
1481 | 1493 | bottom: shape_data.bottom,
|
1482 | 1494 | left: shape_data.left,
|
1483 | 1495 | right: shape_data.right
|
1484 |
| - }); |
| 1496 | + }, data.preventEvents); |
1485 | 1497 |
|
1486 | 1498 | that.renderArrow({
|
1487 | 1499 | x_from: x_from,
|
|
0 commit comments