Skip to content

Commit d838d06

Browse files
committed
(version) 2.0.7
1 parent d35896a commit d838d06

File tree

3 files changed

+32
-16
lines changed

3 files changed

+32
-16
lines changed

dist/vue-advanced-chat.es.js

+18-2
Original file line numberDiff line numberDiff line change
@@ -26452,6 +26452,21 @@ class Recorder {
2645226452
this.micFailed && this.micFailed(error);
2645326453
}
2645426454
}
26455+
var isChromium = window.chrome;
26456+
var winNav = window.navigator;
26457+
var vendorName = winNav.vendor;
26458+
var isOpera = typeof window.opr !== "undefined";
26459+
var isIEedge = winNav.userAgent.indexOf("Edg") > -1;
26460+
var isIOSChrome = winNav.userAgent.match("CriOS");
26461+
function detectChrome() {
26462+
if (isIOSChrome) {
26463+
return true;
26464+
} else if (isChromium !== null && typeof isChromium !== "undefined" && vendorName === "Google Inc." && isOpera === false && isIEedge === false) {
26465+
return true;
26466+
} else {
26467+
return false;
26468+
}
26469+
}
2645526470
function detectMobile() {
2645626471
var userAgent = getUserAgent();
2645726472
var userAgentPart = userAgent.substr(0, 4);
@@ -26635,9 +26650,10 @@ const _sfc_main$a = {
2663526650
this.getTextareaRef().focus();
2663626651
if (this.cursorRangePosition) {
2663726652
setTimeout(() => {
26653+
const offset = detectChrome() ? 0 : 1;
2663826654
this.getTextareaRef().setSelectionRange(
26639-
this.cursorRangePosition,
26640-
this.cursorRangePosition
26655+
this.cursorRangePosition + offset,
26656+
this.cursorRangePosition + offset
2664126657
);
2664226658
this.cursorRangePosition = null;
2664326659
});

dist/vue-advanced-chat.umd.js

+13-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-advanced-chat",
3-
"version": "2.0.6",
3+
"version": "2.0.7",
44
"license": "MIT",
55
"description": "A beautiful chat rooms component made with Vue.js - compatible with Vue, React & Angular",
66
"author": {

0 commit comments

Comments
 (0)