Changeset 26838
- Timestamp:
- 12/09/2013 07:37:36 PM (11 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/wp-admin.css
r26836 r26838 7195 7195 padding: 5px 10px 4px 10px; 7196 7196 } 7197 7197 7198 .theme-overlay.small-screenshot .theme-screenshots { 7198 7199 position: static; … … 7200 7201 max-width: 302px; 7201 7202 } 7203 7202 7204 .theme-overlay.small-screenshot .theme-info { 7203 7205 margin-left: 0; 7204 7206 width: auto; 7207 } 7208 7209 .theme:not(.active):hover .theme-actions, 7210 .theme:hover .more-details { 7211 display: none; 7212 } 7213 7214 .theme-browser.rendered .theme:hover .theme-screenshot img { 7215 opacity: 1.0; 7205 7216 } 7206 7217 } -
trunk/src/wp-admin/js/theme.js
r26827 r26838 188 188 189 189 events: { 190 'click': 'expand' 191 }, 190 'click': 'expand', 191 'touchend': 'expand', 192 'touchmove': 'preventExpand' 193 }, 194 195 touchDrag: false, 192 196 193 197 render: function() { … … 216 220 var self = this; 217 221 222 // Bail if the user scrolled on a touch device 223 if ( this.touchDrag === true ) { 224 return this.touchDrag = false; 225 } 226 218 227 event = event || window.event; 219 228 … … 225 234 226 235 this.trigger( 'theme:expand', self.model.cid ); 236 }, 237 238 preventExpand: function() { 239 this.touchDrag = true; 227 240 } 228 241 });
Note: See TracChangeset
for help on using the changeset viewer.