Element drag working only once on webview





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















I have a page that got elements that when long clicked makes it draggable. It works on the Chrome app but not on my WebView.



This is my WebSettings.



String UA = "Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19" +
" (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19";

WebSettings settings = webView.getSettings();
settings.setJavaScriptEnabled(true);
settings.setLoadWithOverviewMode(true);
settings.setSupportZoom(false);
settings.setBuiltInZoomControls(false);
settings.setPluginState(android.webkit.WebSettings.PluginState.ON_DEMAND);
settings.setDatabaseEnabled(true);
settings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NORMAL);
settings.setRenderPriority(WebSettings.RenderPriority.HIGH);
settings.setCacheMode(WebSettings.LOAD_DEFAULT);
settings.setDomStorageEnabled(false);
settings.setUseWideViewPort(true);
settings.setAllowFileAccess(true);
settings.setAppCacheEnabled(true);

settings.setUserAgentString(UA);


I also already enabled long click on the webview by doing webView.setLongClickable(true);



I can now drag the elements after long clicking. But I can only drag 1. After dragging 1 element, I can't drag anything anymore.



The page the webview loads GSAP TweenMax, Draggable, CSSPlugin if that infos will help.










share|improve this question

























  • this is happening to me too, did you solve it?

    – Sebastian Paduano
    Jan 22 at 16:55













  • The only thing that solved that for me is use a Lollipop device. I haven't done more research or testing about it but that's the only thing that made it work for me.

    – rminaj
    Jan 23 at 3:18











  • I opened a issue on gsap repo, just in case if you wanna keep an eye to the issue github.com/greensock/GreenSock-JS/issues/296

    – Sebastian Paduano
    Jan 23 at 8:33











  • Lol. I already did that.

    – rminaj
    Jan 23 at 8:43


















1















I have a page that got elements that when long clicked makes it draggable. It works on the Chrome app but not on my WebView.



This is my WebSettings.



String UA = "Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19" +
" (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19";

WebSettings settings = webView.getSettings();
settings.setJavaScriptEnabled(true);
settings.setLoadWithOverviewMode(true);
settings.setSupportZoom(false);
settings.setBuiltInZoomControls(false);
settings.setPluginState(android.webkit.WebSettings.PluginState.ON_DEMAND);
settings.setDatabaseEnabled(true);
settings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NORMAL);
settings.setRenderPriority(WebSettings.RenderPriority.HIGH);
settings.setCacheMode(WebSettings.LOAD_DEFAULT);
settings.setDomStorageEnabled(false);
settings.setUseWideViewPort(true);
settings.setAllowFileAccess(true);
settings.setAppCacheEnabled(true);

settings.setUserAgentString(UA);


I also already enabled long click on the webview by doing webView.setLongClickable(true);



I can now drag the elements after long clicking. But I can only drag 1. After dragging 1 element, I can't drag anything anymore.



The page the webview loads GSAP TweenMax, Draggable, CSSPlugin if that infos will help.










share|improve this question

























  • this is happening to me too, did you solve it?

    – Sebastian Paduano
    Jan 22 at 16:55













  • The only thing that solved that for me is use a Lollipop device. I haven't done more research or testing about it but that's the only thing that made it work for me.

    – rminaj
    Jan 23 at 3:18











  • I opened a issue on gsap repo, just in case if you wanna keep an eye to the issue github.com/greensock/GreenSock-JS/issues/296

    – Sebastian Paduano
    Jan 23 at 8:33











  • Lol. I already did that.

    – rminaj
    Jan 23 at 8:43














1












1








1








I have a page that got elements that when long clicked makes it draggable. It works on the Chrome app but not on my WebView.



This is my WebSettings.



String UA = "Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19" +
" (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19";

WebSettings settings = webView.getSettings();
settings.setJavaScriptEnabled(true);
settings.setLoadWithOverviewMode(true);
settings.setSupportZoom(false);
settings.setBuiltInZoomControls(false);
settings.setPluginState(android.webkit.WebSettings.PluginState.ON_DEMAND);
settings.setDatabaseEnabled(true);
settings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NORMAL);
settings.setRenderPriority(WebSettings.RenderPriority.HIGH);
settings.setCacheMode(WebSettings.LOAD_DEFAULT);
settings.setDomStorageEnabled(false);
settings.setUseWideViewPort(true);
settings.setAllowFileAccess(true);
settings.setAppCacheEnabled(true);

settings.setUserAgentString(UA);


I also already enabled long click on the webview by doing webView.setLongClickable(true);



I can now drag the elements after long clicking. But I can only drag 1. After dragging 1 element, I can't drag anything anymore.



The page the webview loads GSAP TweenMax, Draggable, CSSPlugin if that infos will help.










share|improve this question
















I have a page that got elements that when long clicked makes it draggable. It works on the Chrome app but not on my WebView.



This is my WebSettings.



String UA = "Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19" +
" (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19";

WebSettings settings = webView.getSettings();
settings.setJavaScriptEnabled(true);
settings.setLoadWithOverviewMode(true);
settings.setSupportZoom(false);
settings.setBuiltInZoomControls(false);
settings.setPluginState(android.webkit.WebSettings.PluginState.ON_DEMAND);
settings.setDatabaseEnabled(true);
settings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NORMAL);
settings.setRenderPriority(WebSettings.RenderPriority.HIGH);
settings.setCacheMode(WebSettings.LOAD_DEFAULT);
settings.setDomStorageEnabled(false);
settings.setUseWideViewPort(true);
settings.setAllowFileAccess(true);
settings.setAppCacheEnabled(true);

settings.setUserAgentString(UA);


I also already enabled long click on the webview by doing webView.setLongClickable(true);



I can now drag the elements after long clicking. But I can only drag 1. After dragging 1 element, I can't drag anything anymore.



The page the webview loads GSAP TweenMax, Draggable, CSSPlugin if that infos will help.







android webview draggable greensock long-click






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 '18 at 8:32







rminaj

















asked Nov 23 '18 at 2:07









rminajrminaj

358




358













  • this is happening to me too, did you solve it?

    – Sebastian Paduano
    Jan 22 at 16:55













  • The only thing that solved that for me is use a Lollipop device. I haven't done more research or testing about it but that's the only thing that made it work for me.

    – rminaj
    Jan 23 at 3:18











  • I opened a issue on gsap repo, just in case if you wanna keep an eye to the issue github.com/greensock/GreenSock-JS/issues/296

    – Sebastian Paduano
    Jan 23 at 8:33











  • Lol. I already did that.

    – rminaj
    Jan 23 at 8:43



















  • this is happening to me too, did you solve it?

    – Sebastian Paduano
    Jan 22 at 16:55













  • The only thing that solved that for me is use a Lollipop device. I haven't done more research or testing about it but that's the only thing that made it work for me.

    – rminaj
    Jan 23 at 3:18











  • I opened a issue on gsap repo, just in case if you wanna keep an eye to the issue github.com/greensock/GreenSock-JS/issues/296

    – Sebastian Paduano
    Jan 23 at 8:33











  • Lol. I already did that.

    – rminaj
    Jan 23 at 8:43

















this is happening to me too, did you solve it?

– Sebastian Paduano
Jan 22 at 16:55







this is happening to me too, did you solve it?

– Sebastian Paduano
Jan 22 at 16:55















The only thing that solved that for me is use a Lollipop device. I haven't done more research or testing about it but that's the only thing that made it work for me.

– rminaj
Jan 23 at 3:18





The only thing that solved that for me is use a Lollipop device. I haven't done more research or testing about it but that's the only thing that made it work for me.

– rminaj
Jan 23 at 3:18













I opened a issue on gsap repo, just in case if you wanna keep an eye to the issue github.com/greensock/GreenSock-JS/issues/296

– Sebastian Paduano
Jan 23 at 8:33





I opened a issue on gsap repo, just in case if you wanna keep an eye to the issue github.com/greensock/GreenSock-JS/issues/296

– Sebastian Paduano
Jan 23 at 8:33













Lol. I already did that.

– rminaj
Jan 23 at 8:43





Lol. I already did that.

– rminaj
Jan 23 at 8:43












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53439868%2felement-drag-working-only-once-on-webview%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53439868%2felement-drag-working-only-once-on-webview%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

ComboBox Display Member on multiple fields

Is it possible to collect Nectar points via Trainline?