do not apply touch start hack on emojis

This commit is contained in:
Joffrey JAFFEUX 2017-07-19 11:17:53 +02:00
parent 89573e3427
commit 38be969727
1 changed files with 6 additions and 2 deletions
app/assets/javascripts/discourse/lib

View File

@ -7,8 +7,8 @@ export function isAppleDevice() {
} }
// we can't tell what the actual visible window height is // we can't tell what the actual visible window height is
// because we cannot account for the height of the mobile keyboard // because we cannot account for the height of the mobile keyboard
// and any other mobile autocomplete UI that may appear // and any other mobile autocomplete UI that may appear
// so let's be conservative here rather than trying to max out every // so let's be conservative here rather than trying to max out every
// available pixel of height for the editor // available pixel of height for the editor
@ -123,6 +123,10 @@ function positioningWorkaround($fixedElement) {
const checkForInputs = _.debounce(function(){ const checkForInputs = _.debounce(function(){
$fixedElement.find('button:not(.hide-preview),a:not(.mobile-file-upload):not(.toggle-toolbar)').each(function(idx, elem){ $fixedElement.find('button:not(.hide-preview),a:not(.mobile-file-upload):not(.toggle-toolbar)').each(function(idx, elem){
if ($(elem).parents('.emoji-picker').length > 0) {
return;
}
if ($(elem).parents('.autocomplete').length > 0) { if ($(elem).parents('.autocomplete').length > 0) {
return; return;
} }