3
我正在使用html5和javascript語言的metro風格的應用程序。請找到我的問題如下:如何確定它是點擊還是點擊iteview的事件列表視圖
我有一個listview的iteminvoked事件,其中我試圖運行css3轉換。我不想在用戶點擊鼠標時運行動畫,因爲我已經爲鼠標懸停場景使用了css3聲明性動畫(:hover)。我的問題是如何確定它是點擊還是鼠標點擊。
itemInvoked: function (args) {
if (appView.value === appViewState.snapped) {
// If the page is snapped, the user invoked a group.
var group = Data.groups.getAt(args.detail.itemIndex);
nav.navigate("/pages/groupDetail/groupDetail.html", { groupKey: group.key });
} else {
var winitem = args.srcElement.querySelector(".win-item");
var actionicon = winitem.querySelector(".item-image");
var actiontitle = winitem.querySelector(".item-title");
var showTransition = WinJS.UI.executeTransition(
args.srcElement,
[{
property: "border-color",
delay: 0,
duration: 500,
timing: "linear",
to: "#333"
},
{
property: "z-index",
delay: 0,
duration: 500,
timing: "linear",
to: "999"
},
{
property: "transform",
delay: 0,
duration: 500,
timing: "linear",
to: "scale(1.1)"
}
]
);