Skip to content

Commit

Permalink
v6.7.8
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed Feb 9, 2022
1 parent bb496c0 commit e0c4214
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gleap",
"version": "6.7.7",
"version": "6.7.8",
"main": "build/index.js",
"scripts": {
"start": "webpack serve",
Expand Down
1 change: 1 addition & 0 deletions published/6.7.8/appwidget.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions published/6.7.8/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions published/6.7.8/index.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion published/latest/index.js

Large diffs are not rendered by default.

23 changes: 17 additions & 6 deletions src/MarkerManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export default class MarkerManager {
<div class="bb-capture-editor-borderlayer"></div>
<svg class="bb-capture-svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" xml:space="preserve"></svg>
<div class="bb-capture-dismiss">${loadIcon("dismiss")}</div>
<div class='bb-capture-editor-drag-info'>${loadIcon("pen")}</div>
<div class='bb-capture-editor-drag-info'>${loadIcon("rect")}</div>
<div class="bb-capture-toolbar">
${
this.type === "capture"
Expand All @@ -192,12 +192,12 @@ export default class MarkerManager {
</div>`
: ""
}
<div class="bb-capture-toolbar-item bb-capture-toolbar-drawingitem bb-capture-toolbar-item-tool bb-capture-toolbar-item--active" data-type="pen">
${loadIcon("pen")}
</div>
<div class="bb-capture-toolbar-item bb-capture-toolbar-drawingitem bb-capture-toolbar-item-tool" data-type="rect">
<div class="bb-capture-toolbar-item bb-capture-toolbar-drawingitem bb-capture-toolbar-item-tool bb-capture-toolbar-item--active" data-type="rect">
${loadIcon("rect")}
</div>
<div class="bb-capture-toolbar-item bb-capture-toolbar-drawingitem bb-capture-toolbar-item-tool" data-type="pen">
${loadIcon("pen")}
</div>
<div class="bb-capture-toolbar-item bb-capture-toolbar-drawingitem bb-capture-toolbar-item-tool" data-type="blur">
${loadIcon("blur")}
</div>
Expand Down Expand Up @@ -281,14 +281,20 @@ export default class MarkerManager {
this.escListener = function (evt) {
evt = evt || window.event;
var isEscape = false;
var isEnter = false;
if ("key" in evt) {
isEscape = evt.key === "Escape" || evt.key === "Esc";
isEnter = evt.key === "Enter";
} else {
isEscape = evt.keyCode === 27;
isEnter = evt.keyCode === 13;
}
if (isEscape) {
self.dismiss();
}
if (self.type === "screenshot" && isEnter) {
self.showNextStep();
}
};
document.addEventListener("keydown", this.escListener);

Expand Down Expand Up @@ -441,7 +447,12 @@ export default class MarkerManager {
// Inactivate buttons.
return;
}
if (type === "pen" || type === "blur" || type === "rect" || type === "pointer") {
if (
type === "pen" ||
type === "blur" ||
type === "rect" ||
type === "pointer"
) {
const toolbarTools = document.querySelectorAll(
".bb-capture-toolbar-item-tool"
);
Expand Down
2 changes: 1 addition & 1 deletion src/ScreenDrawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export class ScreenDrawer {
bufferSize = 4;
buffer = [];
startPoint = null;
tool = "pen";
tool = "rect";
color = "#EB144C";
mouseDown = null;
mouseMove = null;
Expand Down

0 comments on commit e0c4214

Please sign in to comment.