JQuery 可调整大小的触摸屏

JQuery Resizable Touchscreen

我正在使用 jQuery 可调整大小的方法来调整 div 的大小,它在鼠标上工作正常但在触摸屏上不起作用..它不显示可调整大小的光标并且不调整大小与触摸设备。喜欢 android 三星平板电脑,请告诉我如何解决这个问题。

笨蛋 http://plnkr.co/edit/mU18FfjoXRHgRkzAvIcx?p=preview 请指导我如何在触摸设备上进行进一步操作。

<!doctype html>

我尝试了 touchpunch,它成功了。

以下是来自 their github page 的说明:

Just follow these simple steps to enable touch events in your jQuery UI app:

Include jQuery and jQuery UI on your page.

<script src="http://code.jquery.com/jquery.min.js"></script>
<script src="http://code.jquery.com/ui/1.8.17/jquery-ui.min.js"></script>

Include Touch Punch after jQuery UI and before its first use.

Please note that if you are using jQuery UI's components, Touch Punch must be included after jquery.ui.mouse.js, as Touch Punch modifies its behavior.

<script src="jquery.ui.touch-punch.min.js"></script>

There is no 3. Just use jQuery UI as expected and watch it work at the touch of a finger.

<script>$('#widget').resizable();</script>