Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Commit fc2ed24

Browse files
committed
[FIX] Docs update with write on smart guide
1 parent e896530 commit fc2ed24

File tree

3 files changed

+45
-36
lines changed

3 files changed

+45
-36
lines changed

docs/components/myscript-common-element/.bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747
"paper-toggle-button": "^2.0.0",
4848
"paper-slider": "^2.0.2"
4949
},
50-
"_release": "58586781ad",
50+
"_release": "480a414689",
5151
"_resolution": {
5252
"type": "branch",
5353
"branch": "master",
54-
"commit": "58586781adfe07209da1533bb2f550a6f66a18ee"
54+
"commit": "480a414689d99b19956ec96981cddc2d289081cb"
5555
},
5656
"_source": "https://github.com/MyScript/myscript-common-element.git",
5757
"_target": "master",

docs/components/myscript-common-element/analysis.json

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@
885885
"column": 12
886886
},
887887
"end": {
888-
"line": 878,
888+
"line": 887,
889889
"column": 13
890890
}
891891
},
@@ -905,11 +905,11 @@
905905
"privacy": "protected",
906906
"sourceRange": {
907907
"start": {
908-
"line": 880,
908+
"line": 889,
909909
"column": 12
910910
},
911911
"end": {
912-
"line": 891,
912+
"line": 900,
913913
"column": 13
914914
}
915915
},
@@ -929,11 +929,11 @@
929929
"privacy": "public",
930930
"sourceRange": {
931931
"start": {
932-
"line": 898,
932+
"line": 907,
933933
"column": 12
934934
},
935935
"end": {
936-
"line": 913,
936+
"line": 922,
937937
"column": 13
938938
}
939939
},
@@ -946,11 +946,11 @@
946946
"privacy": "public",
947947
"sourceRange": {
948948
"start": {
949-
"line": 915,
949+
"line": 924,
950950
"column": 12
951951
},
952952
"end": {
953-
"line": 919,
953+
"line": 928,
954954
"column": 13
955955
}
956956
},
@@ -963,11 +963,11 @@
963963
"privacy": "public",
964964
"sourceRange": {
965965
"start": {
966-
"line": 924,
966+
"line": 933,
967967
"column": 12
968968
},
969969
"end": {
970-
"line": 928,
970+
"line": 937,
971971
"column": 13
972972
}
973973
},
@@ -980,11 +980,11 @@
980980
"privacy": "public",
981981
"sourceRange": {
982982
"start": {
983-
"line": 933,
983+
"line": 942,
984984
"column": 12
985985
},
986986
"end": {
987-
"line": 937,
987+
"line": 946,
988988
"column": 13
989989
}
990990
},
@@ -997,11 +997,11 @@
997997
"privacy": "public",
998998
"sourceRange": {
999999
"start": {
1000-
"line": 942,
1000+
"line": 951,
10011001
"column": 12
10021002
},
10031003
"end": {
1004-
"line": 946,
1004+
"line": 955,
10051005
"column": 13
10061006
}
10071007
},
@@ -1014,11 +1014,11 @@
10141014
"privacy": "private",
10151015
"sourceRange": {
10161016
"start": {
1017-
"line": 951,
1017+
"line": 960,
10181018
"column": 12
10191019
},
10201020
"end": {
1021-
"line": 955,
1021+
"line": 964,
10221022
"column": 13
10231023
}
10241024
},
@@ -1031,11 +1031,11 @@
10311031
"privacy": "private",
10321032
"sourceRange": {
10331033
"start": {
1034-
"line": 962,
1034+
"line": 971,
10351035
"column": 12
10361036
},
10371037
"end": {
1038-
"line": 966,
1038+
"line": 975,
10391039
"column": 13
10401040
}
10411041
},
@@ -1057,11 +1057,11 @@
10571057
"privacy": "public",
10581058
"sourceRange": {
10591059
"start": {
1060-
"line": 992,
1060+
"line": 1001,
10611061
"column": 12
10621062
},
10631063
"end": {
1064-
"line": 996,
1064+
"line": 1005,
10651065
"column": 13
10661066
}
10671067
},
@@ -1080,11 +1080,11 @@
10801080
"privacy": "public",
10811081
"sourceRange": {
10821082
"start": {
1083-
"line": 1001,
1083+
"line": 1010,
10841084
"column": 12
10851085
},
10861086
"end": {
1087-
"line": 1005,
1087+
"line": 1014,
10881088
"column": 13
10891089
}
10901090
},
@@ -1097,11 +1097,11 @@
10971097
"privacy": "public",
10981098
"sourceRange": {
10991099
"start": {
1100-
"line": 1011,
1100+
"line": 1020,
11011101
"column": 12
11021102
},
11031103
"end": {
1104-
"line": 1015,
1104+
"line": 1024,
11051105
"column": 13
11061106
}
11071107
},
@@ -1114,11 +1114,11 @@
11141114
"privacy": "protected",
11151115
"sourceRange": {
11161116
"start": {
1117-
"line": 1017,
1117+
"line": 1026,
11181118
"column": 12
11191119
},
11201120
"end": {
1121-
"line": 1022,
1121+
"line": 1031,
11221122
"column": 13
11231123
}
11241124
},
@@ -1144,11 +1144,11 @@
11441144
"privacy": "protected",
11451145
"sourceRange": {
11461146
"start": {
1147-
"line": 1024,
1147+
"line": 1033,
11481148
"column": 12
11491149
},
11501150
"end": {
1151-
"line": 1029,
1151+
"line": 1038,
11521152
"column": 13
11531153
}
11541154
},
@@ -1174,11 +1174,11 @@
11741174
"privacy": "protected",
11751175
"sourceRange": {
11761176
"start": {
1177-
"line": 1031,
1177+
"line": 1040,
11781178
"column": 12
11791179
},
11801180
"end": {
1181-
"line": 1036,
1181+
"line": 1045,
11821182
"column": 13
11831183
}
11841184
},
@@ -1198,11 +1198,11 @@
11981198
"privacy": "protected",
11991199
"sourceRange": {
12001200
"start": {
1201-
"line": 1038,
1201+
"line": 1047,
12021202
"column": 12
12031203
},
12041204
"end": {
1205-
"line": 1042,
1205+
"line": 1051,
12061206
"column": 13
12071207
}
12081208
},
@@ -1219,11 +1219,11 @@
12191219
"privacy": "protected",
12201220
"sourceRange": {
12211221
"start": {
1222-
"line": 1044,
1222+
"line": 1053,
12231223
"column": 12
12241224
},
12251225
"end": {
1226-
"line": 1065,
1226+
"line": 1074,
12271227
"column": 13
12281228
}
12291229
},
@@ -1273,7 +1273,7 @@
12731273
"column": 8
12741274
},
12751275
"end": {
1276-
"line": 1066,
1276+
"line": 1075,
12771277
"column": 9
12781278
}
12791279
},

docs/components/myscript-common-element/myscript-common-element.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@
664664
}
665665

666666
_attachGrabber(element, editor) {
667+
let firstPointerDown = true;
667668
let mMaxDiffX = 0;
668669
let smartGuidePointerDown = false;
669670
let downSmartGuidePoint = null;
@@ -705,7 +706,15 @@
705706
return false;
706707
};
707708

709+
const downText = () => {
710+
this.logger.debug('down on prompter text');
711+
};
712+
708713
const pointerDownHandler = (evt) => { // Trigger a pointerDown
714+
if (firstPointerDown) {
715+
Polymer.Gestures.addListener(editor.smartGuide.elements.textContainer, 'down', downText);
716+
}
717+
firstPointerDown = false;
709718
patchPointerEvent(evt);
710719
const pointerDownOnEditor = evt.target.id === editor.domElement.id || evt.target.classList.contains('ms-canvas');
711720
if (this.activePointerId) {

0 commit comments

Comments
 (0)