mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-27 23:29:52 -04:00
FIX: Incorrect scope.
This commit is contained in:
parent
910e6a4765
commit
6dd6bbd509
1 changed files with 2 additions and 1 deletions
|
@ -62,6 +62,7 @@ export default Ember.Controller.extend({
|
|||
markerElement.appendChild(document.createTextNode("\ufeff"));
|
||||
|
||||
const isMobileDevice = this.site.isMobileDevice;
|
||||
const isIOS = this.capabilities.isIOS;
|
||||
|
||||
// collapse the range at the beginning/end of the selection
|
||||
range.collapse(!isMobileDevice);
|
||||
|
@ -85,7 +86,7 @@ export default Ember.Controller.extend({
|
|||
let topOff = markerOffset.top;
|
||||
let leftOff = markerOffset.left;
|
||||
|
||||
if (isMobileDevice || this.capabilities.isIOS) {
|
||||
if (isMobileDevice || isIOS) {
|
||||
topOff = topOff + 20;
|
||||
leftOff = Math.min(leftOff + 10, $(window).width() - $quoteButton.outerWidth());
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue